diff options
author | MAbeeTT (Matías Pecchia) <179218+mabeett@users.noreply.github.com> | 2022-11-03 19:13:35 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-03 19:13:35 +0300 |
commit | aa779c7c92f4207d4cb39a46e86c02b5e0a2321c (patch) | |
tree | 1a03a3ce05c0204ee442880fae29fa32a5b3c9ab | |
parent | 88568fb121a9cb51a7d952428c096c0f311f4a85 (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>
-rwxr-xr-x | docker-entrypoint.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index 1e3d438..cad7881 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 |