Save point trying to fix the /etc overwrite problem

This commit is contained in:
kake26 2024-05-23 17:45:46 -05:00
parent 640da30d98
commit 2a76825ad9
Signed by: kake26
GPG key ID: E8AFC43591876B4D
5 changed files with 1441 additions and 2 deletions

View file

@ -29,7 +29,7 @@ function restore_config() {
sleep 1
aptpkgfile="installed_packages"
# restore apt first
cp -R etc/pacman.d /etc
cp -Rf etc/pacman.d /etc
cp pacman.conf /etc
pacman --noconfirm -Sy
if [ -f ./exclusions ]; then
@ -37,7 +37,7 @@ function restore_config() {
fi
pacman -S - < $aptpkgfile
# we should be set app wise now the configs
cp -R etc/ /etc
cp -Rf etc/ /etc
cprint 3 "You may want to reboot for changes to take effect"
cprint 2 "Done!"
}