From 2395f43024e781ed08ab25a87439803b7e520d88 Mon Sep 17 00:00:00 2001 From: Daniel Ceregatti Date: Fri, 16 Jun 2023 17:13:09 -0700 Subject: [PATCH] Move this to the correct script. --- server/bin/dz | 4 ---- web/bin/dz | 4 ++++ 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/server/bin/dz b/server/bin/dz index 43aee7c..0abeb47 100755 --- a/server/bin/dz +++ b/server/bin/dz @@ -18,10 +18,6 @@ parameters="-config=${SERVER_CFG_DST} -port=${port} -freezecheck -BEpath=${SERVE # Where mods are installed. WORKSHOP_DIR="/mods/${release_client_appid}" -if [ ! -d ${WORKSHOP_DIR} ] -then - mkdir -p ${WORKSHOP_DIR} -fi # Backups BACKUP_DIR="${HOME}/backup" diff --git a/web/bin/dz b/web/bin/dz index d26c856..a08c563 100755 --- a/web/bin/dz +++ b/web/bin/dz @@ -4,6 +4,10 @@ source dz-common # An array to store Workshop items. Each element contains the mod's ID, name, and state (active or not). WORKSHOP_DIR="/mods/${release_client_appid}" +if [ ! -d ${WORKSHOP_DIR} ] +then + mkdir -p ${WORKSHOP_DIR} +fi workshoplist=""