From bf2fcea4338b58259623c7ea0af2d3f9c5674be2 Mon Sep 17 00:00:00 2001 From: Christos Alexiou Date: Thu, 20 Feb 2025 21:36:01 +0200 Subject: [PATCH] fix issue with couchdb startup --- hosting/single/runner.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/hosting/single/runner.sh b/hosting/single/runner.sh index 6f81cc2fbd..1a81515d31 100644 --- a/hosting/single/runner.sh +++ b/hosting/single/runner.sh @@ -25,7 +25,11 @@ export APPS_URL="${APPS_URL:-http://127.0.0.1:4001}" export SERVER_TOP_LEVEL_PATH="${SERVER_TOP_LEVEL_PATH:-/app}" # set DATA_DIR and ensure the directory exists -export DATA_DIR="${DATA_DIR:-/data}" +if [[ ${TARGETBUILD} == "aas" ]]; then + export DATA_DIR="/home" +else + export DATA_DIR="${DATA_DIR:-/data}" +fi mkdir -p "${DATA_DIR}" # mount NFS or GCP Filestore if FILESHARE_IP and FILESHARE_NAME are set @@ -81,8 +85,8 @@ ln -s ${DATA_DIR}/.env /worker/.env # make these directories in runner, incase of mount mkdir -p ${DATA_DIR}/minio mkdir -p ${DATA_DIR}/redis -#mkdir -p ${DATA_DIR}/couch -#chown -R couchdb:couchdb ${DATA_DIR}/couch +mkdir -p ${DATA_DIR}/couch +chown -R couchdb:couchdb ${DATA_DIR}/couch REDIS_CONFIG="/etc/redis/redis.conf" sed -i "s#DATA_DIR#${DATA_DIR}#g" "${REDIS_CONFIG}"