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
|
if [ -f /usr/bin/makeself.sh ]; then
|
||||||
# makeself is installed
|
# makeself is installed
|
||||||
echo "makeself is installed, good"
|
echo "makeself is installed, good"
|
||||||
|
mkslf=$(which makeself.sh)
|
||||||
else
|
else
|
||||||
|
if [ -f /usr/bin/makeself ]; then
|
||||||
# makeself is not installed
|
echo "makeself is installed, good"
|
||||||
|
mkslf=$(which makeself)
|
||||||
|
else
|
||||||
echo "makeself is not installed please install via this application"
|
echo "makeself is not installed please install via this application"
|
||||||
sleep 3
|
sleep 3
|
||||||
|
fi
|
||||||
fi
|
fi
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -x
|
# set -x
|
||||||
|
|
||||||
if [ "$(id -u)" != "0" ]; then
|
if [ "$(id -u)" != "0" ]; then
|
||||||
echo "You should run this script as root"
|
echo "You should run this script as root"
|
||||||
|
@ -60,7 +60,7 @@ fi
|
||||||
|
|
||||||
arcdir=$(mktemp -d)
|
arcdir=$(mktemp -d)
|
||||||
echo $arcdir
|
echo $arcdir
|
||||||
mkslf=$(which makeself.sh)
|
|
||||||
echo $mkslf
|
echo $mkslf
|
||||||
$mkslf --gzip $tmpdir $arcdir/restore.run "SFX archive for restoration" ./restore.bash
|
$mkslf --gzip $tmpdir $arcdir/restore.run "SFX archive for restoration" ./restore.bash
|
||||||
cp $arcdir/restore.run ./
|
cp $arcdir/restore.run ./
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue