ShadowArch/AdminScripts/shadowarch-sync

26 lines
674 B
Bash

#!/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>
seconds=10
echo "Syncing in $seconds seconds. Press Ctrl+C to cancel."
sleep $seconds
# AniNIX GPG Package Signing
keyid=1CC1E3F4ED06F296
if ! gpg --homedir /etc/pacman.d/gnupg --list-key "${keyid}"; then
pacman-key --recv-key "${keyid}"
pacman-key --finger "${keyid}"
pacman-key --lsign-key "${keyid}"
fi
# Sync configuration
rsync -avz /opt/aninix/ShadowArch/etc/ /etc/