Public release clean up

This commit is contained in:
Paul 2023-09-20 21:16:47 -05:00
parent 105d5f481c
commit e3359be459
5 changed files with 15 additions and 31 deletions

View file

@ -1,7 +1,5 @@
#!/bin/bash
set -x
function cprint () {
color="$1"
shift
@ -25,14 +23,9 @@ function press_enter() {
}
function restore_config() {
cprint 2 "Restoring config files..."
cprint 2 "Restoring system..."
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 etc/apt/ /etc
apt update
@ -41,10 +34,6 @@ function restore_config() {
apt install -y $(cat $aptpkgfile | awk '{print $1}')
# we should be set app wise now the configs
cp -R etc/ /etc
# most files in here with me are from /etc
cprint 2 "Done!"
}