From eed7d0b7e6f452f5054ac3d937f5fbda32934e45 Mon Sep 17 00:00:00 2001 From: Sam Rose Date: Fri, 8 Dec 2023 14:47:00 +0000 Subject: [PATCH] Fix Clouseau `dir` setting in Kube and docker-compose. --- hosting/couchdb/runner.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hosting/couchdb/runner.sh b/hosting/couchdb/runner.sh index 19c612a17e..e56b8e0e7f 100644 --- a/hosting/couchdb/runner.sh +++ b/hosting/couchdb/runner.sh @@ -37,10 +37,11 @@ elif [[ "${TARGETBUILD}" = "docker-compose" ]]; then # image. sed -i "s#^database_dir.*\$##g" /opt/couchdb/etc/local.ini sed -i "s#^view_index_dir.*\$##g" /opt/couchdb/etc/local.ini + sed -i "s#^dir=.*\$#dir=/opt/couchdb/data#g" /opt/clouseau/clouseau.ini elif [[ -n $KUBERNETES_SERVICE_HOST ]]; then # In Kubernetes the directory /opt/couchdb/data has a persistent volume # mount for storing database data. - sed -i "s#DATA_DIR#/opt/couchdb/data#g" /opt/clouseau/clouseau.ini + sed -i "s#^dir=.*\$#dir=/opt/couchdb/data#g" /opt/clouseau/clouseau.ini # We remove the database_dir and view_index_dir settings from the local.ini # in Kubernetes because it will default to /opt/couchdb/data which is what