Now the file path of the install.sh script is absolute, therefore it will be possible to launch the script also from other path like:

/bin/bash /home/myuser/PirateBoxScripts_Webserver-master/piratebox/install.sh
This also corrects a wrong path on line 47 that was causing the install script to fail.
This commit is contained in:
risca 2014-12-08 01:15:49 +01:00
parent 530b050964
commit 3ae5c4d016

View file

@ -18,6 +18,7 @@
#=======================================================================
#Import PirateBox conf
CURRENT_CONF=piratebox/conf/piratebox.conf
scriptfile="$(readlink -f $0)"
CURRENT_DIR="$(dirname ${scriptfile})"
#Must be root