Merge remote-tracking branch 'upstream/master' into dev#1.1

Conflicts:
	tools/install.sh
This commit is contained in:
Sispheor 2015-06-22 20:03:07 +02:00
commit 8811b6e096
2 changed files with 16 additions and 14 deletions

View File

@ -12,24 +12,25 @@ tar -zxvf master.tar.gz
# Install ARK Server Tools
cd ark-server-tools-master/tools
chmod +x install.sh
sh install.sh $1
sh install.sh $1 > /dev/null
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

View File

@ -20,6 +20,7 @@ if [ ! -z $1 ]; then
chown $1 /var/log/arktools
# Copy arkmanager.cfg inside linux configuation folder if it doesn't already exists
if [ -f /etc/arkmanager/arkmanager.cfg ]; then
mkdir -p /etc/arkmanager
if [ -f /etc/arkmanager/arkmanager.cfg ]; then
echo "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.";