Save point trying to fix the /etc overwrite problem
This commit is contained in:
parent
640da30d98
commit
2a76825ad9
5 changed files with 1441 additions and 2 deletions
|
@ -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!"
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue