forked from BunsenLabs/bunsen-netinstall
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapt-keys
24 lines (19 loc) · 749 Bytes
/
apt-keys
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# 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='0F54 A732 2439 0760 EB5D 9A04 6979 6250 0AFF 9B75'
bigmsg "Installing BunsenLabs APT key."
# An apt-key file is now packaged with this script, shipped in-place.
apt_keydir='/etc/apt/trusted.gpg.d'
if [[ -f "${apt_keydir}/bunsen-release.asc" ]]
then
msg "BunsenLabs APT key found."
else
giveup "BunsenLabs APT key not found in $apt_keydir." 1
fi