Ensure the WORKSHOP_DIR exists when we run.

This commit is contained in:
Daniel Ceregatti 2023-06-16 17:11:37 -07:00
parent 5d1d2433c9
commit 2d2cf6ba35

View file

@ -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