ark-ac-server-tools/netinstall.sh
2015-06-22 10:38:14 +02:00

36 lines
899 B
Bash

#!/bin/bash
#
# Net Installer, used with curl
#
# Download and untar installation files
cd /tmp
wget https://github.com/FezVrasta/ark-server-tools/archive/master.tar.gz
tar -zxvf master.tar.gz
# Install ARK Server Tools
cd ark-server-tools-master/tools
chmod +x install.sh
sh install.sh $1
status = $?
# Remove the installation files
rm -f master.tar.gz
rm -rf /tmp/ark-server-tools-master
if [ "$status" -eq "0" ]; then
echo "ARK Server Tools were correctly installed in your system inside the home directory of $1!"
fi
if [ "$status" -eq "1" ]; then
echo "Something where wrong :("
fi
if [ "$status" -eq "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