save point
This commit is contained in:
parent
8356cbd2fc
commit
220e500d81
1 changed files with 17 additions and 0 deletions
17
restore.bash
17
restore.bash
|
@ -25,6 +25,23 @@ function press_enter() {
|
||||||
function restore_config() {
|
function restore_config() {
|
||||||
cprint 2 "Restoring config files..."
|
cprint 2 "Restoring config files..."
|
||||||
sleep 1
|
sleep 1
|
||||||
|
# since we are run from a makeself file we need to check a few things
|
||||||
|
# get current directory
|
||||||
|
|
||||||
|
tmpcwd=$(pwd)
|
||||||
|
aptpkgfile="installed_packages"
|
||||||
|
|
||||||
|
# restore apt first
|
||||||
|
cp -R 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
|
||||||
|
|
||||||
|
|
||||||
|
# most files in here with me are from /etc
|
||||||
|
|
||||||
cprint 2 "Done!"
|
cprint 2 "Done!"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue