Updates for GPG signing; PKGBUILD cleanup
This commit is contained in:
@@ -9,19 +9,17 @@
|
||||
#
|
||||
# Author: DarkFeather <darkfeather@aninix.net>
|
||||
|
||||
# seconds=10
|
||||
# echo "This will sync your /etc files with the AniNIX defaults and add the AniNIX
|
||||
# GPG key for pacman."
|
||||
# echo "Proceeding in $seconds seconds. Is this OK? [YES/no] "
|
||||
# timeout $seconds cat | read answer
|
||||
# if [[ "${answer,,}" =~ ^n ]]; then
|
||||
# exit 0;
|
||||
# fi
|
||||
seconds=10
|
||||
echo "Syncing in $seconds seconds. Press Ctrl+C to cancel."
|
||||
sleep $seconds
|
||||
|
||||
rsync -avz /opt/aninix/ShadowArch/etc/ /etc/
|
||||
keyid=D9DC5933A1B0D4F7
|
||||
# AniNIX GPG Package Signing
|
||||
keyid=1CC1E3F4ED06F296
|
||||
if ! gpg --homedir /etc/pacman.d/gnupg --list-key "${keyid}"; then
|
||||
pacman-key --add /usr/share/pacman/keyrings/aninix.gpg
|
||||
pacman-key --recv-key "${keyid}"
|
||||
pacman-key --finger "${keyid}"
|
||||
pacman-key --lsign-key "${keyid}"
|
||||
fi
|
||||
|
||||
# Sync configuration
|
||||
rsync -avz /opt/aninix/ShadowArch/etc/ /etc/
|
||||
|
Reference in New Issue
Block a user