Merge branch 'master' into 1.6-dev

This commit is contained in:
Ben Peddell 2016-09-07 05:35:30 +10:00
commit b6afb04389
2 changed files with 10 additions and 6 deletions

View File

@ -57,7 +57,7 @@ case "$status" in
;;
"1")
echo "Something where wrong :("
echo "Something went wrong :( Make sure you meet the Prerequisites found in the readme."
;;
"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."

View File

@ -884,7 +884,7 @@ doStart() {
if [ "$arkAutoUpdateOnStart" == "true" ]; then
if ! [[ " $* " =~ " --noautoupdate " ]]; then
echo "Updating server"
doUpdate --update-mods
doUpdate --update-mods --no-autostart
fi
fi
@ -1322,6 +1322,7 @@ doUpdate() {
local saveworld=
local downloadonly=
local nodownload=
local noautostart=
for arg in "$@"; do
case "$arg" in
@ -1334,6 +1335,7 @@ doUpdate() {
--saveworld) saveworld=1; ;;
--update-mods) modupdate=1; ;;
--backup) arkBackupPreUpdate=true; ;;
--no-autostart) noautostart=1; ;;
--stagingdir=*) arkStagingDir="${arg#--stagingdir=}"; ;;
--downloadonly) downloadonly=1; ;;
--no-download) nodownload=1; ;;
@ -1508,10 +1510,12 @@ doUpdate() {
rm -f "${arkserverroot}/.ark-update.lock"
# we restart the server only if it was started before the update
if [ $serverWasAlive -eq 1 ] || [ -f "${arkserverroot}/.startAfterUpdate" ]; then
rm -f "${arkserverroot}/.startAfterUpdate"
rm -f "${arkserverroot}/.ark-update.lock"
doStart --noautoupdate
if [ -z "$noautostart" ]; then
if [ $serverWasAlive -eq 1 ] || [ -f "${arkserverroot}/.startAfterUpdate" ]; then
rm -f "${arkserverroot}/.startAfterUpdate"
rm -f "${arkserverroot}/.ark-update.lock"
doStart --noautoupdate
fi
fi
else
echo "Your server is already up to date! The most recent version is ${bnumber}."