save point

This commit is contained in:
Paul 2023-09-19 22:12:41 -05:00
parent 8356cbd2fc
commit 220e500d81

View file

@ -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!"
} }