diff options
author | John Molakvoæ <skjnldsv@users.noreply.github.com> | 2022-06-30 14:59:15 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-30 12:59:15 +0000 |
commit | 209d65d0b6a5c50d66b538169545628658810ab6 (patch) | |
tree | 5768e9ed1d00a3d9b82262e541f0635114183fec /docker-entrypoint.sh | |
parent | c416385b7c97f7d5a385f0133fd4fb6cb31690db (diff) |
Add `NEXTCLOUD_INIT_HTACCESS` to run `occ maintenance:update:htaccess` after init (#1761)
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
Diffstat (limited to 'docker-entrypoint.sh')
-rwxr-xr-x | docker-entrypoint.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index 309524f6..7dac0df7 100755 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -217,6 +217,12 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ] || [ "${NEXTCLOUD_UP echo "Initializing finished" fi fi + + # Update htaccess after init if requested + if [ -n "${NEXTCLOUD_INIT_HTACCESS+x}" ]; then + run_as 'php /var/www/html/occ maintenance:update:htaccess' + fi + fi exec "$@" |