diff --git a/22/apache/entrypoint.sh b/22/apache/entrypoint.sh index 309524f6..7dac0df7 100755 --- a/22/apache/entrypoint.sh +++ b/22/apache/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 "$@" diff --git a/22/fpm-alpine/entrypoint.sh b/22/fpm-alpine/entrypoint.sh index 309524f6..7dac0df7 100755 --- a/22/fpm-alpine/entrypoint.sh +++ b/22/fpm-alpine/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 "$@" diff --git a/22/fpm/entrypoint.sh b/22/fpm/entrypoint.sh index 309524f6..7dac0df7 100755 --- a/22/fpm/entrypoint.sh +++ b/22/fpm/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 "$@" diff --git a/23/apache/entrypoint.sh b/23/apache/entrypoint.sh index 309524f6..7dac0df7 100755 --- a/23/apache/entrypoint.sh +++ b/23/apache/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 "$@" diff --git a/23/fpm-alpine/entrypoint.sh b/23/fpm-alpine/entrypoint.sh index 309524f6..7dac0df7 100755 --- a/23/fpm-alpine/entrypoint.sh +++ b/23/fpm-alpine/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 "$@" diff --git a/23/fpm/entrypoint.sh b/23/fpm/entrypoint.sh index 309524f6..7dac0df7 100755 --- a/23/fpm/entrypoint.sh +++ b/23/fpm/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 "$@" diff --git a/24/apache/entrypoint.sh b/24/apache/entrypoint.sh index 309524f6..7dac0df7 100755 --- a/24/apache/entrypoint.sh +++ b/24/apache/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 "$@" diff --git a/24/fpm-alpine/entrypoint.sh b/24/fpm-alpine/entrypoint.sh index 309524f6..7dac0df7 100755 --- a/24/fpm-alpine/entrypoint.sh +++ b/24/fpm-alpine/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 "$@" diff --git a/24/fpm/entrypoint.sh b/24/fpm/entrypoint.sh index 309524f6..7dac0df7 100755 --- a/24/fpm/entrypoint.sh +++ b/24/fpm/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 "$@"