Support for system package install of makeself
This commit is contained in:
parent
3709e9fb05
commit
13091dd1c2
2 changed files with 9 additions and 6 deletions
|
@ -5,10 +5,13 @@
|
|||
if [ -f /usr/bin/makeself.sh ]; then
|
||||
# makeself is installed
|
||||
echo "makeself is installed, good"
|
||||
|
||||
mkslf=$(which makeself.sh)
|
||||
else
|
||||
|
||||
# makeself is not installed
|
||||
if [ -f /usr/bin/makeself ]; then
|
||||
echo "makeself is installed, good"
|
||||
mkslf=$(which makeself)
|
||||
else
|
||||
echo "makeself is not installed please install via this application"
|
||||
sleep 3
|
||||
fi
|
||||
fi
|
|
@ -1,6 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -x
|
||||
# set -x
|
||||
|
||||
if [ "$(id -u)" != "0" ]; then
|
||||
echo "You should run this script as root"
|
||||
|
@ -60,7 +60,7 @@ fi
|
|||
|
||||
arcdir=$(mktemp -d)
|
||||
echo $arcdir
|
||||
mkslf=$(which makeself.sh)
|
||||
|
||||
echo $mkslf
|
||||
$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