This commit is contained in:
2023-11-20 06:25:12 -06:00
parent bc2661b93f
commit 69ec6bd7be
4 changed files with 69 additions and 12 deletions

25
modserver/update_mods.sh Normal file
View File

@@ -0,0 +1,25 @@
#!/bin/sh
#
# shellcheck disable=1090,2034
# ===================================================
# 01. Attempt to load global DayZ values
# ===================================================
echo "Starting, attempting to load globals.sh"
GLOBALS_FILE="$PWD/globals.sh"
if [ -e "$GLOBALS_FILE" ] ; then
chmod +x "$GLOBALS_FILE"
. "$GLOBALS_FILE"
else
>&2 echo "Could not load: $GLOBALS_FILE"
exit 1
fi
# ===================================================
######### LOCAL SCRIPT VARS ###############
LOCAL_MODS_DIR="$HOME/steam_data/steamapps/workshop/content/$DAYZ_GAME_ID"
REMOTE_MAPS="/mnt/dayz/stock/maps"
REMOTE_MODS="/mnt/dayz/mods"
###########################################