summaryrefslogtreecommitdiffstats
path: root/23/fpm-alpine/entrypoint.sh
diff options
context:
space:
mode:
Diffstat (limited to '23/fpm-alpine/entrypoint.sh')
-rwxr-xr-x23/fpm-alpine/entrypoint.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/23/fpm-alpine/entrypoint.sh b/23/fpm-alpine/entrypoint.sh
index 1e3d4380..cad78817 100755
--- a/23/fpm-alpine/entrypoint.sh
+++ b/23/fpm-alpine/entrypoint.sh
@@ -242,7 +242,7 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ] || [ "${NEXTCLOUD_UP
fi
# Update htaccess after init if requested
- if [ -n "${NEXTCLOUD_INIT_HTACCESS+x}" ]; then
+ if [ -n "${NEXTCLOUD_INIT_HTACCESS+x}" ] && [ "$installed_version" != "0.0.0.0" ]; then
run_as 'php /var/www/html/occ maintenance:update:htaccess'
fi