working as tested with VM
This commit is contained in:
parent
220e500d81
commit
105d5f481c
2 changed files with 6 additions and 3 deletions
|
@ -1,5 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -x
|
||||
|
||||
function cprint () {
|
||||
color="$1"
|
||||
shift
|
||||
|
@ -32,13 +34,13 @@ function restore_config() {
|
|||
aptpkgfile="installed_packages"
|
||||
|
||||
# restore apt first
|
||||
cp -R apt/ /etc
|
||||
cp -R etc/apt/ /etc
|
||||
apt update
|
||||
apt upgrade -y
|
||||
# now the programs installed via apt before we restore configs
|
||||
apt install -y $(cat $aptpkgfile | awk '{print $1}')
|
||||
# we should be set app wise now the configs
|
||||
cp -R . /etc
|
||||
cp -R etc/ /etc
|
||||
|
||||
|
||||
# most files in here with me are from /etc
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue