2019-05-06 02:04:19 -05:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# File: shadowarch-sync
|
|
|
|
#
|
|
|
|
# Description: This file syncs the ShadowArch customization files over the ones created by other packages, like filesystem and pacman
|
|
|
|
#
|
|
|
|
# Package: AniNIX::Foundation/ShadowArch
|
|
|
|
# Copyright: WTFPL
|
|
|
|
#
|
|
|
|
# Author: DarkFeather <darkfeather@aninix.net>
|
|
|
|
|
2019-05-20 13:27:29 -05:00
|
|
|
seconds=10
|
|
|
|
echo "Syncing in $seconds seconds. Press Ctrl+C to cancel."
|
|
|
|
sleep $seconds
|
2019-05-17 17:53:31 -05:00
|
|
|
|
2019-05-20 13:27:29 -05:00
|
|
|
# AniNIX GPG Package Signing
|
|
|
|
keyid=1CC1E3F4ED06F296
|
2019-05-17 17:53:31 -05:00
|
|
|
if ! gpg --homedir /etc/pacman.d/gnupg --list-key "${keyid}"; then
|
2019-05-20 13:27:29 -05:00
|
|
|
pacman-key --recv-key "${keyid}"
|
2019-05-17 17:53:31 -05:00
|
|
|
pacman-key --finger "${keyid}"
|
|
|
|
pacman-key --lsign-key "${keyid}"
|
|
|
|
fi
|
2019-05-20 13:27:29 -05:00
|
|
|
|
|
|
|
# Sync configuration
|
|
|
|
rsync -avz /opt/aninix/ShadowArch/etc/ /etc/
|