From 220e500d815dea627f8bd06007f4aff17fc41f13 Mon Sep 17 00:00:00 2001 From: Paul Date: Tue, 19 Sep 2023 22:12:41 -0500 Subject: [PATCH] save point --- restore.bash | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) 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!" }