Arch support added in theory

This commit is contained in:
Paul M 2023-10-05 15:04:12 -05:00
parent 762230245a
commit e8a75bf3df
3 changed files with 74 additions and 3 deletions

View file

@ -48,13 +48,20 @@ function copy_config() {
tmpdir=$(mktemp -d)
echo $tmpdir
cp -r /etc/ $tmpdir
# if [${osp} = "Debian"]; then
dpkg --get-selections > $tmpdir/installed_packages
if [ "$osp" = "Debian" ]; then
dpkg --get-selections > $tmpdir/installed_packages
cp ./restore.deb.bash $tmpdir/restore.bash
fi
if [ "$osp" = "Arch" ]; then
pacman -Qqen > $tmpdir/installed_packages
cp ./restore.arch.bash $tmpdir/restore.bash
fi
arcdir=$(mktemp -d)
echo $arcdir
mkslf=$(which makeself.sh)
echo $mkslf
cp ./restore.bash $tmpdir
$mkslf --gzip $tmpdir $arcdir/restore.run "SFX archive for restoration" ./restore.bash
cp $arcdir/restore.run ./