From aa779c7c92f4207d4cb39a46e86c02b5e0a2321c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?MAbeeTT=20=28Mat=C3=ADas=20Pecchia=29?= <179218+mabeett@users.noreply.github.com> Date: Thu, 3 Nov 2022 17:13:35 +0100 Subject: [PATCH] prevents running `occ maintenance:update:htaccess` on a first run volume (#1843) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Matías Pecchia <179218+mabeett@users.noreply.github.com> Signed-off-by: Matías Pecchia <179218+mabeett@users.noreply.github.com> --- docker-entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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