From bfecf1ff75089ca949969e7163bcbc8e88594128 Mon Sep 17 00:00:00 2001 From: Valentin Lab Date: Fri, 27 Sep 2024 18:49:16 +0200 Subject: [PATCH] fix: [nextcloud] make charm work on first ``compose up`` --- nextcloud/lib/common | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/nextcloud/lib/common b/nextcloud/lib/common index 2a75116..100f1ca 100644 --- a/nextcloud/lib/common +++ b/nextcloud/lib/common @@ -96,6 +96,13 @@ create_occ_if_not_exists() { if ! out=$( export COMPOSE_IGNORE_ORPHANS=true + ## XXXvlab: this is to avoid re-running init from + ## apache (if provided in compose.yml) that is bugged + ## and will delete all config. It'll be run even if it + ## seems excluded because ALL_RELATION is already + ## solved. These are 2 mishaps that will need to be + ## addressed in compose-core. + export ALL_RELATIONS= compose --debug --without-relation="$SERVICE_NAME":web-proxy run \ -v "$CHARM_PATH"/src/fake-apache:/usr/bin/apache \ --rm --entrypoint /entrypoint.sh "$SERVICE_NAME" apache 2>&1