Public release clean up
This commit is contained in:
parent
105d5f481c
commit
e3359be459
5 changed files with 15 additions and 31 deletions
13
restore.bash
13
restore.bash
|
@ -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!"
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue