summaryrefslogtreecommitdiffstats
path: root/docker-entrypoint.sh
diff options
context:
space:
mode:
Diffstat (limited to 'docker-entrypoint.sh')
-rwxr-xr-xdocker-entrypoint.sh6
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 "$@"