mirror of
https://ceregatti.org/git/daniel/dayzdockerserver.git
synced 2025-05-06 22:31:18 +00:00
Ensure the WORKSHOP_DIR exists when we run.
This commit is contained in:
parent
5d1d2433c9
commit
2d2cf6ba35
1 changed files with 7 additions and 2 deletions
|
@ -18,7 +18,10 @@ parameters="-config=${SERVER_CFG_DST} -port=${port} -freezecheck -BEpath=${SERVE
|
||||||
|
|
||||||
# Where mods are installed.
|
# Where mods are installed.
|
||||||
WORKSHOP_DIR="/mods/${release_client_appid}"
|
WORKSHOP_DIR="/mods/${release_client_appid}"
|
||||||
mod_command_line=""
|
if [ ! -d ${WORKSHOP_DIR} ]
|
||||||
|
then
|
||||||
|
mkdir -p ${WORKSHOP_DIR}
|
||||||
|
fi
|
||||||
|
|
||||||
# Backups
|
# Backups
|
||||||
BACKUP_DIR="${HOME}/backup"
|
BACKUP_DIR="${HOME}/backup"
|
||||||
|
@ -27,6 +30,8 @@ then
|
||||||
mkdir -p "${BACKUP_DIR}"
|
mkdir -p "${BACKUP_DIR}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
mod_command_line=""
|
||||||
|
|
||||||
# Functions
|
# Functions
|
||||||
|
|
||||||
# Usage
|
# Usage
|
||||||
|
@ -144,7 +149,7 @@ report() {
|
||||||
mergexml(){
|
mergexml(){
|
||||||
# First copy the pristine files from upstream
|
# First copy the pristine files from upstream
|
||||||
echo "Copying pristine versions of cfgeconomycore.xml and cfgeventspawns.xml..."
|
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}{} \;
|
# 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
|
# Follow https://community.bistudio.com/wiki/DayZ:Central_Economy_mission_files_modding and make a single XML
|
||||||
|
|
Loading…
Add table
Reference in a new issue