Skip to content
Snippets Groups Projects
Unverified Commit aa779c7c authored by MAbeeTT (Matías Pecchia)'s avatar MAbeeTT (Matías Pecchia) Committed by GitHub
Browse files

prevents running `occ maintenance:update:htaccess` on a first run volume (#1843)

parent 88568fb1
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment