mirror of
https://github.com/eliasstepanik/ark-ac-server-tools.git
synced 2026-01-14 03:38:27 +00:00
commit
c187dfeb4f
@ -458,7 +458,7 @@ Instance config files
|
||||
|
||||
Instance config files are stored under
|
||||
`/etc/arkmanager/instances/<instancename>.cfg`,
|
||||
`~/.local/config/arkmanager/instances/<instancename>.cfg`
|
||||
`~/.config/arkmanager/instances/<instancename>.cfg`
|
||||
or as specified in the `configfile_<instancename>` options in
|
||||
the global config.
|
||||
|
||||
|
||||
@ -1061,6 +1061,7 @@ printWarnMessage(){
|
||||
fi
|
||||
reason="${reason//\{time\}/${msgtime}}"
|
||||
reason="${reason//\{modnamesupdated\}/${modnamesupdated}}"
|
||||
reason="${reason//\{version\}/${arkversion}}"
|
||||
msg="${msg//\{reason\}/${reason}}"
|
||||
else
|
||||
if [ "$1" == "update" ]; then
|
||||
@ -1337,6 +1338,7 @@ doUpdate() {
|
||||
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"
|
||||
else
|
||||
rsync -a "$arkserverroot/." "$arkStagingDir/."
|
||||
@ -1370,6 +1372,7 @@ doUpdate() {
|
||||
fi
|
||||
echo "Not applying update - download-only enabled"
|
||||
elif [ -n "$appupdate" -o -n "$modupdate" ]; then
|
||||
arkversion="$(<"$arkserverroot/version.txt")"
|
||||
if isTheServerRunning; then
|
||||
if [ "$updatetype" == "safe" ]; then
|
||||
while [ ! `find $arkserverroot/ShooterGame/Saved/SavedArks -mmin -1 -name ${serverMap##*/}.ark` ]; do
|
||||
@ -1418,6 +1421,7 @@ doUpdate() {
|
||||
cp -alu --remove-destination "$arkStagingDir/linux64/." "$arkserverroot/linux64"
|
||||
cp -alu --remove-destination "$arkStagingDir/PackageInfo.bin" "$arkserverroot/PackageInfo.bin"
|
||||
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"
|
||||
else
|
||||
rsync -a "$arkStagingDir/." "$arkserverroot"
|
||||
@ -1492,6 +1496,11 @@ doDownloadMod(){
|
||||
cd "$steamcmdroot"
|
||||
retries=10
|
||||
|
||||
# Bypass the 111111111 modid used by Primitive+
|
||||
if [ "$modid" = "111111111" ]; then
|
||||
return 0
|
||||
fi
|
||||
|
||||
while true; do
|
||||
echo -n "Downloading mod $modid"
|
||||
local output
|
||||
@ -1542,6 +1551,11 @@ isModUpdateNeeded(){
|
||||
local moddestdir="$arkserverroot/ShooterGame/Content/Mods/$modid"
|
||||
local modbranch="${mod_branch:-Windows}"
|
||||
|
||||
# Bypass the 111111111 modid used by Primitive+
|
||||
if [ "$modid" = "111111111" ]; then
|
||||
return 1
|
||||
fi
|
||||
|
||||
if [ -n "${modsrcdirs[$modid]}" ]; then
|
||||
modsrcdir="${modsrcdirs[$modid]}"
|
||||
fi
|
||||
@ -1629,6 +1643,11 @@ doExtractMod(){
|
||||
local moddestdir="$arkserverroot/ShooterGame/Content/Mods/$modid"
|
||||
local modbranch="${mod_branch:-Windows}"
|
||||
|
||||
# Bypass the 111111111 modid used by Primitive+
|
||||
if [ "$modid" = "111111111" ]; then
|
||||
return 0
|
||||
fi
|
||||
|
||||
if [ -n "${modsrcdirs[$modid]}" ]; then
|
||||
modsrcdir="${modsrcdirs[$modid]}"
|
||||
fi
|
||||
@ -2107,7 +2126,8 @@ printStatus(){
|
||||
fi
|
||||
|
||||
getCurrentVersion
|
||||
echo -e "$NORMAL" "Server version: " "$GREEN" $instver "$NORMAL"
|
||||
echo -e "$NORMAL" "Server build ID: " "$GREEN" $instver "$NORMAL"
|
||||
echo -e "$NORMAL" "Server version: " "$GREEN" "$(<"$arkserverroot/version.txt")" "$NORMAL"
|
||||
}
|
||||
|
||||
getAllInstanceNames(){
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user