finally fixing the netinstaller

This commit is contained in:
FezVrasta 2015-06-22 10:44:40 +02:00
parent 2abfc7057c
commit 3303a43cab

View File

@ -14,22 +14,23 @@ cd ark-server-tools-master/tools
chmod +x install.sh
sh install.sh $1
status = $?
status=$?
# Remove the installation files
rm -f master.tar.gz
rm -rf /tmp/ark-server-tools-master
# Print messages
case "$status" in
"0")
echo "ARK Server Tools were correctly installed in your system inside the home directory of $1!"
;;
if (( $status == 0 )); then
echo "ARK Server Tools were correctly installed in your system inside the home directory of $1!"
fi
if (( $status == 1 )); then
echo "Something where wrong :("
fi
if (( $status == 2 )); then
echo "WARNING: A previous version of ARK Server Tools was detected in your system, your old configuration was not overwritten. You may need to manually update it."
echo "ARK Server Tools were correctly installed in your system inside the home directory of $1!"
fi
"1")
echo "Something where wrong :("
;;
"2")
echo "WARNING: A previous version of ARK Server Tools was detected in your system, your old configuration was not overwritten. You may need to manually update it."
echo "ARK Server Tools were correctly installed in your system inside the home directory of $1!"
;;
esac