summaryrefslogtreecommitdiffstats
path: root/docker-entrypoint.sh
diff options
context:
space:
mode:
authorMAbeeTT (Matías Pecchia) <179218+mabeett@users.noreply.github.com>2022-11-03 17:13:35 +0100
committerGitHub <noreply@github.com>2022-11-03 16:13:35 +0000
commitaa779c7c92f4207d4cb39a46e86c02b5e0a2321c (patch)
tree1a03a3ce05c0204ee442880fae29fa32a5b3c9ab /docker-entrypoint.sh
parent88568fb121a9cb51a7d952428c096c0f311f4a85 (diff)
prevents running `occ maintenance:update:htaccess` on a first run volume (#1843)
Signed-off-by: Matías Pecchia <179218+mabeett@users.noreply.github.com> Signed-off-by: Matías Pecchia <179218+mabeett@users.noreply.github.com>
Diffstat (limited to 'docker-entrypoint.sh')
-rwxr-xr-xdocker-entrypoint.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh
index 1e3d4380..cad78817 100755
--- a/docker-entrypoint.sh
+++ b/docker-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