mirror of
https://github.com/eliasstepanik/ark-ac-server-tools.git
synced 2026-01-22 06:38:27 +00:00
Sync more files; accept missing version.txt
This commit is contained in:
parent
658d044d0e
commit
9a08add72a
@ -1417,16 +1417,16 @@ doUpdate() {
|
|||||||
cp -al "$arkserverroot/ShooterGame/." "$arkStagingDir/ShooterGame"
|
cp -al "$arkserverroot/ShooterGame/." "$arkStagingDir/ShooterGame"
|
||||||
cp -al "$arkserverroot/Engine/." "$arkStagingDir/Engine"
|
cp -al "$arkserverroot/Engine/." "$arkStagingDir/Engine"
|
||||||
cp -al "$arkserverroot/linux64/." "$arkStagingDir/linux64"
|
cp -al "$arkserverroot/linux64/." "$arkStagingDir/linux64"
|
||||||
cp -al "$arkserverroot/PackageInfo.bin" "$arkStagingDir/PackageInfo.bin"
|
|
||||||
cp -al "$arkserverroot/steamclient.so" "$arkStagingDir/steamclient.so"
|
|
||||||
cp -al "$arkserverroot/version.txt" "$arkStagingDir/version.txt"
|
|
||||||
cp -a "$arkserverroot/steamapps/." "$arkStagingDir/steamapps"
|
cp -a "$arkserverroot/steamapps/." "$arkStagingDir/steamapps"
|
||||||
|
cp -l "$arkserverroot/"* "$arkStagingDir"
|
||||||
else
|
else
|
||||||
rsync -a "$arkserverroot/." "$arkStagingDir/."
|
rsync -a "$arkserverroot/." "$arkStagingDir/."
|
||||||
fi
|
fi
|
||||||
rm -rf "$arkStagingDir/ShooterGame/Content/Mods/"*
|
rm -rf "$arkStagingDir/ShooterGame/Content/Mods/"*
|
||||||
rm -rf "$arkStagingDir/ShooterGame/Saved/"*
|
rm -rf "$arkStagingDir/ShooterGame/Saved/"*
|
||||||
rm -rf "$arkStagingDir/Engine/Binaries/ThirdParty/SteamCMD/Linux/steamapps"
|
rm -rf "$arkStagingDir/Engine/Binaries/ThirdParty/SteamCMD/Linux/steamapps"
|
||||||
|
cp -al "$arkserverroot/ShooterGame/Content/Mods/111111111/." "$arkStagingDir/ShooterGame/Content/Mods/111111111"
|
||||||
|
cp -l "$arkserverroot/ShooterGame/Content/Mods/111111111.mod" "$arkStagingDir/ShooterGame/Content/Mods/111111111.mod"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "$nodownload" ]; then
|
if [ -z "$nodownload" ]; then
|
||||||
@ -1458,7 +1458,12 @@ doUpdate() {
|
|||||||
fi
|
fi
|
||||||
echo "Not applying update - download-only enabled"
|
echo "Not applying update - download-only enabled"
|
||||||
elif [ -n "$appupdate" -o -n "$modupdate" -o -n "$bgupdate" ]; then
|
elif [ -n "$appupdate" -o -n "$modupdate" -o -n "$bgupdate" ]; then
|
||||||
arkversion="$(<"$arkserverroot/version.txt")"
|
if [ -f "$arkserverroot/version.txt" ]; then
|
||||||
|
arkversion="$(<"$arkserverroot/version.txt")"
|
||||||
|
else
|
||||||
|
arkversion="$(getCurrentVersion; echo "$instver")"
|
||||||
|
fi
|
||||||
|
|
||||||
if isTheServerRunning; then
|
if isTheServerRunning; then
|
||||||
if [ "$updatetype" == "safe" ]; then
|
if [ "$updatetype" == "safe" ]; then
|
||||||
while [ ! `find $arkserverroot/ShooterGame/Saved/SavedArks -mmin -1 -name ${serverMap##*/}.ark` ]; do
|
while [ ! `find $arkserverroot/ShooterGame/Saved/SavedArks -mmin -1 -name ${serverMap##*/}.ark` ]; do
|
||||||
@ -1499,9 +1504,7 @@ doUpdate() {
|
|||||||
cp -alu --remove-destination "$arkStagingDir/ShooterGame/." "$arkserverroot/ShooterGame"
|
cp -alu --remove-destination "$arkStagingDir/ShooterGame/." "$arkserverroot/ShooterGame"
|
||||||
cp -alu --remove-destination "$arkStagingDir/Engine/." "$arkserverroot/Engine"
|
cp -alu --remove-destination "$arkStagingDir/Engine/." "$arkserverroot/Engine"
|
||||||
cp -alu --remove-destination "$arkStagingDir/linux64/." "$arkserverroot/linux64"
|
cp -alu --remove-destination "$arkStagingDir/linux64/." "$arkserverroot/linux64"
|
||||||
cp -alu --remove-destination "$arkStagingDir/PackageInfo.bin" "$arkserverroot/PackageInfo.bin"
|
cp -lu --remove-destination "$arkStagingDir/"* "$arkserverroot"
|
||||||
cp -alu --remove-destination "$arkStagingDir/steamclient.so" "$arkserverroot/steamclient.so"
|
|
||||||
cp -alu --remove-destination "$arkStagingDir/version.txt" "$arkserverroot/version.txt"
|
|
||||||
cp -au --remove-destination "$arkStagingDir/steamapps/." "$arkserverroot/steamapps"
|
cp -au --remove-destination "$arkStagingDir/steamapps/." "$arkserverroot/steamapps"
|
||||||
else
|
else
|
||||||
rsync -a "$arkStagingDir/." "$arkserverroot"
|
rsync -a "$arkStagingDir/." "$arkserverroot"
|
||||||
@ -2286,7 +2289,9 @@ printStatus(){
|
|||||||
|
|
||||||
getCurrentVersion
|
getCurrentVersion
|
||||||
echo -e "$NORMAL" "Server build ID: " "$GREEN" $instver "$NORMAL"
|
echo -e "$NORMAL" "Server build ID: " "$GREEN" $instver "$NORMAL"
|
||||||
echo -e "$NORMAL" "Server version: " "$GREEN" "$(<"$arkserverroot/version.txt")" "$NORMAL"
|
if [ -f "$arkserverroot/version.txt" ]; then
|
||||||
|
echo -e "$NORMAL" "Server version: " "$GREEN" "$(<"$arkserverroot/version.txt")" "$NORMAL"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
getAllInstanceNames(){
|
getAllInstanceNames(){
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user