|
@ -78,7 +78,14 @@ get_admin_user_password() { |
|
|
|
|
|
|
|
|
## only called after first install and occ is available |
|
|
## only called after first install and occ is available |
|
|
nextcloud:init() { |
|
|
nextcloud:init() { |
|
|
occ app:disable updatenotification nextcloud_announcements |
|
|
|
|
|
|
|
|
occ app:disable updatenotification nextcloud_announcements \; \ |
|
|
|
|
|
config:system:set maintenance_window_start --type=integer --value=1 \; \ |
|
|
|
|
|
config:system:set trusted_proxies 0 --value="0.0.0.0/0" \; \ |
|
|
|
|
|
db:add-missing-columns \; \ |
|
|
|
|
|
db:add-missing-indices \; \ |
|
|
|
|
|
db:add-missing-primary-keys \; \ |
|
|
|
|
|
maintenance:repair --include-expensive |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
create_occ_if_not_exists() { |
|
|
create_occ_if_not_exists() { |
|
@ -114,7 +121,7 @@ create_occ_if_not_exists() { |
|
|
err "Expected last command to create /var/www/html/occ" |
|
|
err "Expected last command to create /var/www/html/occ" |
|
|
return 1 |
|
|
return 1 |
|
|
fi |
|
|
fi |
|
|
nextcloud:init |
|
|
|
|
|
|
|
|
nextcloud:init || return 1 |
|
|
fi |
|
|
fi |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -126,6 +133,9 @@ occ() { |
|
|
## occ.batch will require /var/www/html to be populated ('occ' is |
|
|
## occ.batch will require /var/www/html to be populated ('occ' is |
|
|
## supposed to exist). For that we need to make sure nextcloud have |
|
|
## supposed to exist). For that we need to make sure nextcloud have |
|
|
## be ran and setup prior to running this next command. |
|
|
## be ran and setup prior to running this next command. |
|
|
|
|
|
|
|
|
|
|
|
## We need here actually only the relation sql-database. Any other hook |
|
|
|
|
|
## using `occ` would make the call infinitively recursive. |
|
|
export COMPOSE_IGNORE_ORPHANS=true |
|
|
export COMPOSE_IGNORE_ORPHANS=true |
|
|
compose --debug -q --no-init --without-relation="$SERVICE_NAME":web-proxy run \ |
|
|
compose --debug -q --no-init --without-relation="$SERVICE_NAME":web-proxy run \ |
|
|
"${occ_docker_run_opts[@]}" \ |
|
|
"${occ_docker_run_opts[@]}" \ |
|
|