Fixed /etc/apt perms after main /etc restore and put apt in noninteractive mode for restore
This commit is contained in:
parent
43c28f9a7d
commit
9de01e8c4e
1 changed files with 2 additions and 0 deletions
|
@ -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!"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue