Fixed /etc/apt perms after main /etc restore and put apt in noninteractive mode for restore

This commit is contained in:
kake26 2024-05-21 12:47:21 -05:00
parent 43c28f9a7d
commit 9de01e8c4e
Signed by: kake26
GPG key ID: E8AFC43591876B4D

View file

@ -1,6 +1,7 @@
#!/bin/bash #!/bin/bash
source ./restore.lib.bash source ./restore.lib.bash
export DEBIAN_FRONTEND=noninteractive
function cprint () { function cprint () {
color="$1" color="$1"
@ -51,6 +52,7 @@ function restore_config() {
# we should be set app wise now the configs # we should be set app wise now the configs
cp -R etc/ /etc cp -R etc/ /etc
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!"
} }