Browse Source

fix: [nextcloud] make charm work on first ``compose up``

upd
Valentin Lab 2 months ago
parent
commit
bfecf1ff75
  1. 7
      nextcloud/lib/common

7
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

Loading…
Cancel
Save