More work on /etc issue

This commit is contained in:
kake26 2024-05-28 21:15:39 -05:00
parent acf67abefb
commit 90be15c888
Signed by: kake26
GPG key ID: E8AFC43591876B4D

View file

@ -43,6 +43,7 @@ function restore_config() {
chown -R _apt /etc/apt chown -R _apt /etc/apt
apt update apt update
apt upgrade -y apt upgrade -y
apt install -y rsync
# now the programs installed via apt before we restore configs # now the programs installed via apt before we restore configs
if [ -f ./exclusions ]; then if [ -f ./exclusions ]; then
exclusions # this runs exclusions exclusions # this runs exclusions
@ -60,7 +61,8 @@ function restore_config() {
fi fi
# we should be set app wise now the configs # we should be set app wise now the configs
$cpapp -Rf etc/ /etc #$cpapp -Rf etc/ /etc
rsync -avh --delete --progress etc/ /etc
chown -R _apt /etc/apt chown -R _apt /etc/apt
cprint 3 "You may want to reboot for changes to take effect" cprint 3 "You may want to reboot for changes to take effect"
cprint 2 "Done!" cprint 2 "Done!"