加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
apt-keys 1.28 KB
一键复制 编辑 原始数据 按行查看 历史
John Crawley 提交于 2020-09-07 18:18 . Small bugfixes
# This file is sourced by the install script just before installing
# the main packages.
# You can add code to install APT GPG keys here.
#
# LOGGING:
# bigmsg "..." will output a bold message to the terminal and logfile.
# End your command lines with:
# > >( tee -a "$logfile" ) 2>&1 || giveup "Some message..." 1
# so that output will be logged, and success checked.
#BUNSEN_APT_FINGERPRINT='3172 4784 0522 7490 BBB7 43E6 A067 3F72 FE62 D9C5'
bigmsg "Installing BunsenLabs APT key."
#wget http://pkg.bunsenlabs.org/BunsenLabs-RELEASE.asc > >( tee -a "$logfile" ) 2>&1 || giveup "Failed to download BunsenLabs APT key." 1
#KEY_FINGERPRINT=$(gpg --with-fingerprint BunsenLabs-RELEASE.asc | sed -rn 's/^\s*Key fingerprint = (([0-9A-Z]{4}\s*)+).*$/\1/p')
#[[ $KEY_FINGERPRINT = $BUNSEN_APT_FINGERPRINT ]] || giveup "Downloaded Apt key fingerprint is not correct" 1
# An apt-key file is now packaged with this script.
#sudo apt-key add BunsenLabs-RELEASE.asc > >( tee -a "$logfile" ) 2>&1 || giveup "Failed to install helium-dev APT key." 1
# 'apt-key add' deprecated, see 'man apt-key'
# Key is now shipped in-place.
apt_keydir='/etc/apt/trusted.gpg.d'
if [[ -f "${apt_keydir}/BunsenLabs-RELEASE.asc" ]]
then
msg "BunsenLabs APT key found."
else
giveup "BunsenLabs APT key not found in $apt_keydir." 1
fi
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化