Updated ownership in rules. Thanks to citronalco

This commit is contained in:
Ivan Jurišić 2023-03-27 09:34:42 +02:00
parent d51b5baed7
commit e628b66f98

11
debian/rules vendored
View File

@ -8,18 +8,23 @@ override_dh_strip_nondeterminism:
override_dh_fixperms: override_dh_fixperms:
dh_fixperms dh_fixperms
mkdir -p debian/nextcloud-server/var/www/nextcloud/data mkdir -p debian/nextcloud-server/var/www/nextcloud/data
mkdir -p debian/nextcloud-server/var/www/nextcloud/updater 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 f -print0 | xargs -0 chmod 0640
find debian/nextcloud-server/var/www/nextcloud -type d -print0 | xargs -0 chmod 0750 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/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/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/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/themes
chown -R www-data:www-data debian/nextcloud-server/var/www/nextcloud/updater 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/nextcloud-server/var/www/nextcloud/occ
chmod +x debian/usr/sbin/occ chmod +x debian/usr/sbin/occ