From 3075849d5a985a0f7b46b77a3068f7e65d8789c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivan=20Juri=C5=A1i=C4=87?= Date: Mon, 27 Mar 2023 09:41:34 +0200 Subject: [PATCH] Updated rules --- debian/rules | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/debian/rules b/debian/rules index bbf2f2b..2db0055 100755 --- a/debian/rules +++ b/debian/rules @@ -10,16 +10,20 @@ override_dh_fixperms: dh_fixperms mkdir -p debian/nextcloud-server/var/www/nextcloud/data mkdir -p debian/nextcloud-server/var/www/nextcloud/updater + find debian/nextcloud-server/var/www/nextcloud -type f -print0 | xargs -0 chmod 0640 find debian/nextcloud-server/var/www/nextcloud -type d -print0 | xargs -0 chmod 0750 - chmod 0644 debian/nextcloud-server/var/www/nextcloud/.htaccess - chown -R root:www-data debian/nextcloud-server/var/www/nextcloud + + chown -R www-data:www-data debian/nextcloud-server/var/www/nextcloud chown -R www-data:www-data debian/nextcloud-server/var/www/nextcloud/apps chown -R www-data:www-data debian/nextcloud-server/var/www/nextcloud/config chown -R www-data:www-data debian/nextcloud-server/var/www/nextcloud/data chown -R www-data:www-data debian/nextcloud-server/var/www/nextcloud/themes chown -R www-data:www-data debian/nextcloud-server/var/www/nextcloud/updater - chown root:www-data debian/nextcloud-server/var/www/nextcloud/.htaccess + + chmod 0644 debian/nextcloud-server/var/www/nextcloud/.htaccess + chown www-data:www-data debian/nextcloud-server/var/www/nextcloud/.htaccess + chmod +x debian/nextcloud-server/var/www/nextcloud/occ chmod +x debian/apache/occ