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