diff --git a/restore.bash b/restore.bash index d6f6c16..a9c607d 100755 --- a/restore.bash +++ b/restore.bash @@ -25,6 +25,23 @@ function press_enter() { function restore_config() { cprint 2 "Restoring config files..." 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!" }