Arch support added in theory
This commit is contained in:
parent
762230245a
commit
e8a75bf3df
3 changed files with 74 additions and 3 deletions
|
@ -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 ./
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue