From 2d2cf6ba3579c501b9ebe4f613221bba25ef36f4 Mon Sep 17 00:00:00 2001 From: Daniel Ceregatti Date: Fri, 16 Jun 2023 17:11:37 -0700 Subject: [PATCH] Ensure the WORKSHOP_DIR exists when we run. --- server/bin/dz | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/server/bin/dz b/server/bin/dz index 9532e42..43aee7c 100755 --- a/server/bin/dz +++ b/server/bin/dz @@ -18,7 +18,10 @@ parameters="-config=${SERVER_CFG_DST} -port=${port} -freezecheck -BEpath=${SERVE # Where mods are installed. WORKSHOP_DIR="/mods/${release_client_appid}" -mod_command_line="" +if [ ! -d ${WORKSHOP_DIR} ] +then + mkdir -p ${WORKSHOP_DIR} +fi # Backups BACKUP_DIR="${HOME}/backup" @@ -27,6 +30,8 @@ then mkdir -p "${BACKUP_DIR}" fi +mod_command_line="" + # Functions # Usage @@ -144,7 +149,7 @@ report() { mergexml(){ # First copy the pristine files from upstream echo "Copying pristine versions of cfgeconomycore.xml and cfgeventspawns.xml..." - find /mpmissions -name cfgeconomycore.xml -exec cp {} ${SERVER_FILES}{} \; +`` find /mpmissions -name cfgeconomycore.xml -exec cp -v {} ${SERVER_FILES}{} \; # find /mpmissions -name cfgeventspawns.xml -exec cp {} ${SERVER_FILES}{} \; # Follow https://community.bistudio.com/wiki/DayZ:Central_Economy_mission_files_modding and make a single XML