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