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

@ -3,7 +3,7 @@
#set -x # debug mode
# This should work on a Debian based system, any of them
# Requires makeslef and apt
# Requires makeself and apt
# Some menu things
@ -36,17 +36,12 @@ function press_enter() {
}
function copy_config() {
cprint 2 "Copying config files..."
cprint 2 "Creating restorable package..."
sleep 1
# create a temp folder
tmpdir=$(mktemp -d)
echo $tmpdir
cp -r /etc/ $tmpdir
#apt list --installed | awk -F/ '{print $1}' > $tmpdir/installed_packages
dpkg --get-selections > $tmpdir/installed_packages
# From https://wiki.debian.org/AptCLI#apt-file
# dpkg --get-selections >/backup/package-selections
# apt install $(cat /backup/package-selections | awk '{print $1}')
arcdir=$(mktemp -d)
echo $arcdir
mkslf=$(which makeself.sh)
@ -54,7 +49,7 @@ function copy_config() {
cp ./restore.bash $tmpdir
$mkslf --gzip $tmpdir $arcdir/restore.run "SFX archive for restoration" ./restore.bash
cp $arcdir/restore.run ./
chown kake26:kake26 restore.run
cprint 2 "Done!"
}