|
|
@ -93,9 +93,16 @@ create_occ_if_not_exists() { |
|
|
|
## NEXTCLOUD_ADMIN_{USER,PASSWORD} that is required to trigger |
|
|
|
## a full installation |
|
|
|
|
|
|
|
if ! out=$( |
|
|
|
export COMPOSE_IGNORE_ORPHANS=true |
|
|
|
compose --debug --without-relation="$SERVICE_NAME":web-proxy run \ |
|
|
|
--rm --entrypoint /entrypoint.sh "$SERVICE_NAME" apache >&2 || true |
|
|
|
-v "$CHARM_PATH"/src/fake-apache:/usr/bin/apache \ |
|
|
|
--rm --entrypoint /entrypoint.sh "$SERVICE_NAME" apache 2>&1 |
|
|
|
); then |
|
|
|
err "Initialization of code or database failed unexpectedly" |
|
|
|
e "$out" | prefix " | " |
|
|
|
return 1 |
|
|
|
fi |
|
|
|
if ! [ -e "$SERVICE_DATASTORE/var/www/html/occ" ]; then |
|
|
|
err "Expected last command to create /var/www/html/occ" |
|
|
|
return 1 |
|
|
|