ETC overwrite fix added to arch restore

This commit is contained in:
kake26 2024-05-31 20:44:29 -05:00
parent 512ce5f600
commit d74929f654
Signed by: kake26
GPG key ID: E8AFC43591876B4D

View file

@ -38,12 +38,14 @@ function restore_config() {
cp -Rf etc/pacman.d /etc cp -Rf etc/pacman.d /etc
cp pacman.conf /etc cp pacman.conf /etc
pacman --noconfirm -Sy pacman --noconfirm -Sy
pacman --noconfirm -S rsync
if [ -f ./exclusions ]; then if [ -f ./exclusions ]; then
exclusions # this runs exclusions exclusions # this runs exclusions
fi fi
pacman -S - < $aptpkgfile pacman -S - < $aptpkgfile
# we should be set app wise now the configs # we should be set app wise now the configs
cp -Rf etc/ /etc #cp -Rf etc/ /etc
rsync -avh --delete --progress etc/ /etc
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!"
} }