From a92bebe0af70b01dd460a7eb92f0aa5b34330c4e Mon Sep 17 00:00:00 2001 From: Daniel Hansson Date: Tue, 27 Dec 2016 11:03:55 +0100 Subject: [PATCH] fix .htaccess rewritebase bug --- nextcloud-startup-script.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nextcloud-startup-script.sh b/nextcloud-startup-script.sh index fe013bea..784f90a7 100644 --- a/nextcloud-startup-script.sh +++ b/nextcloud-startup-script.sh @@ -329,9 +329,10 @@ clear # Pretty URLs echo "Setting RewriteBase to "/" in config.php..." -chown www-data:www-data $NCPATH/config/config.php +chown -R www-data:www-data $NCPATH sudo -u www-data php $NCPATH/occ config:system:set htaccess.RewriteBase --value="/" sudo -u www-data php $NCPATH/occ maintenance:update:htaccess +bash $SCRIPTS/setup_secure_permissions_nextcloud.sh # Generate new SSH Keys echo