Merge pull request #95 from klightspeed/master

Explain variables affecting install; Discover path of lsof
This commit is contained in:
Fez Vrasta 2015-07-05 17:36:52 +02:00
commit a530c6b8b4
2 changed files with 12 additions and 1 deletions

View File

@ -25,6 +25,11 @@ if [ -f "${HOME}/.arkmanager.cfg" ]; then
source "${HOME}/.arkmanager.cfg"
fi
lsof=lsof
if [ -x /usr/sbin/lsof ]; then
lsof=/usr/sbin/lsof
fi
# Local variables
info=""
thejob=""
@ -142,7 +147,7 @@ function isTheServerRunning(){
#
#
function isTheServerUp(){
lsof -i :"$ark_Port" > /dev/null
$lsof -i :"$ark_Port" > /dev/null
result=$?
# In this case, the result is:
# 1 if the command fail. The port is not listenning

View File

@ -103,6 +103,12 @@ if [ ! -z "$1" ]; then
else
echo "You must specify your system steam user who own steamcmd directory to install ARK Tools."
echo "Usage: ./install.sh steam"
echo
echo "Environment variables affecting install:"
echo "EXECPREFIX: prefix in which to install arkmanager executable"
echo " [${EXECPREFIX}]"
echo "INSTALL_ROOT: staging directory in which to perform install"
echo " [${INSTALL_ROOT}]"
exit 1
fi