mirror of
https://github.com/eliasstepanik/ark-ac-server-tools.git
synced 2026-01-21 14:28:27 +00:00
Merge pull request #76 from FezVrasta/revert-74-master
Revert "Waiting for world save before update."
This commit is contained in:
commit
d8d0bd73c9
@ -99,9 +99,6 @@ manually updates ARK server if a new version is available
|
|||||||
#### arkmanager forceupdate
|
#### arkmanager forceupdate
|
||||||
Apply update without check the current version
|
Apply update without check the current version
|
||||||
|
|
||||||
#### arkmanager safeupdate
|
|
||||||
Waits for server to perform world save and then updates.
|
|
||||||
|
|
||||||
#### arkmanager status
|
#### arkmanager status
|
||||||
Get the status of the server. Show if the process is running, if the server is up and the current version number
|
Get the status of the server. Show if the process is running, if the server is up and the current version number
|
||||||
|
|
||||||
|
|||||||
@ -258,26 +258,6 @@ forceUpdate(){
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
#
|
|
||||||
# Waits for server to perform save before update (until save file is newer than 1 minute)
|
|
||||||
#
|
|
||||||
safeUpdate(){
|
|
||||||
cd "$arkserverroot"
|
|
||||||
|
|
||||||
if isUpdateNeeded; then
|
|
||||||
while [ ! `find $arkserverroot/ShooterGame/Saved/SavedArks -mmin -1 -name $serverMap.ark` ]; do
|
|
||||||
echo "$timestamp: Save file older than 1 minute. Delaying update." >> "$logdir/update.log"
|
|
||||||
sleep 30s
|
|
||||||
done
|
|
||||||
echo "$timestamp: Save file newer than 1 minute. Performing an update." >> "$logdir/update.log"
|
|
||||||
forceUpdate
|
|
||||||
else
|
|
||||||
echo "Your server is already up to date! The most recent version is ${bnumber}."
|
|
||||||
echo "$timestamp: No update needed." >> "$logdir/update.log"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Print the status of the server (running? online? version?)
|
# Print the status of the server (running? online? version?)
|
||||||
#
|
#
|
||||||
@ -345,7 +325,6 @@ case "$1" in
|
|||||||
echo "update Check for a new ARK server version, if needed, stops the server, updates it, and starts it again"
|
echo "update Check for a new ARK server version, if needed, stops the server, updates it, and starts it again"
|
||||||
echo "forceupdate Apply update without check the current version"
|
echo "forceupdate Apply update without check the current version"
|
||||||
echo "checkupdate Check for a new ARK server version"
|
echo "checkupdate Check for a new ARK server version"
|
||||||
echo "safeupdate Wait for server to perform world save and update.
|
|
||||||
echo "boradcast PLACEHOLDER, not supported yet"
|
echo "boradcast PLACEHOLDER, not supported yet"
|
||||||
echo "status Returns the status of the current ARK server instance"
|
echo "status Returns the status of the current ARK server instance"
|
||||||
;;
|
;;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user