mirror of
https://github.com/eliasstepanik/ark-ac-server-tools.git
synced 2026-01-27 16:58:27 +00:00
Add -automanagedmods support to update
This commit is contained in:
parent
3fe29777e6
commit
4c8d9d53da
@ -1284,6 +1284,7 @@ doUpdate() {
|
|||||||
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"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "$nodownload" ]; then
|
if [ -z "$nodownload" ]; then
|
||||||
@ -1384,7 +1385,7 @@ doUpdate() {
|
|||||||
echo "`timestamp`: update to $instver complete" >> "$logdir/update.log"
|
echo "`timestamp`: update to $instver complete" >> "$logdir/update.log"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -n "$modupdate" ]; then
|
if [ -n "$modupdate" ] && [ -z "$arkflag_automanagedmods" ]; then
|
||||||
for modid in $(getModIds); do
|
for modid in $(getModIds); do
|
||||||
if isModUpdateNeeded $modid; then
|
if isModUpdateNeeded $modid; then
|
||||||
echo "Updating mod $modid"
|
echo "Updating mod $modid"
|
||||||
@ -1423,6 +1424,10 @@ getModIds(){
|
|||||||
#
|
#
|
||||||
doDownloadMod(){
|
doDownloadMod(){
|
||||||
local modid=$1
|
local modid=$1
|
||||||
|
local steamcmdroot="$steamcmdroot"
|
||||||
|
if [ -n "$arkflag_automanagedmods" ]; then
|
||||||
|
steamcmdroot="$arkserverroot/Engine/Binaries/ThirdParty/SteamCMD/Linux"
|
||||||
|
fi
|
||||||
local modsrcdir="$steamcmdroot/steamapps/workshop/content/$mod_appid/$modid"
|
local modsrcdir="$steamcmdroot/steamapps/workshop/content/$mod_appid/$modid"
|
||||||
local moddldir="$steamcmdroot/steamapps/workshop/downloads/$mod_appid"
|
local moddldir="$steamcmdroot/steamapps/workshop/downloads/$mod_appid"
|
||||||
cd "$steamcmdroot"
|
cd "$steamcmdroot"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user