From 6534c5c2ee81ba0ff4b367db9e65e9393a9f5d2d Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Tue, 27 Nov 2018 13:07:18 +0100 Subject: [PATCH] Update the htaccess on both install and update to not loose clean URLs after update or reinstall --- setup | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/setup b/setup index 3a43d0d..a5515f4 100644 --- a/setup +++ b/setup @@ -79,7 +79,6 @@ if [ "$NC_IS_UPGRADE" -eq 0 ] ; then $OCC config:system:set overwritewbroot --value="/nextcloud" $OCC config:system:set overwrite.cli.url --value="https://$NC_UCR_DOMAIN/nextcloud" $OCC config:system:set htaccess.RewriteBase --value="/nextcloud" - $OCC maintenance:update:htaccess $OCC background:cron $OCC app:enable user_ldap $OCC app:disable updatenotification @@ -137,6 +136,9 @@ else done fi +# Recreate the htaccess on both install and update +$OCC maintenance:update:htaccess + # env var is set from the dockerfile if [ "$NC_IS_PATCHED" = true ]; then $OCC config:system:set integrity.check.disabled --value="true" --type=boolean