From cfba4b94512beb995453a6e4194203a6a268828d Mon Sep 17 00:00:00 2001 From: Jakub Jirutka Date: Thu, 22 Jun 2017 20:07:36 +0200 Subject: community/nextcloud: add subpkg -initscript --- .../nextcloud/nextcloud-initscript.post-install | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 community/nextcloud/nextcloud-initscript.post-install (limited to 'community/nextcloud/nextcloud-initscript.post-install') diff --git a/community/nextcloud/nextcloud-initscript.post-install b/community/nextcloud/nextcloud-initscript.post-install new file mode 100644 index 0000000000..6d664a5026 --- /dev/null +++ b/community/nextcloud/nextcloud-initscript.post-install @@ -0,0 +1,26 @@ +#!/bin/sh + +# It's not needed to be writable for www-data group when running with php-fpm. +for dir in /etc/nextcloud \ + /etc/nextcloud/config.php \ + /var/lib/nextcloud/data \ + /usr/share/webapps/nextcloud/apps +do + chmod g-w $dir + chown nextcloud $dir +done +chgrp root /etc/nextcloud/config.php + +# This must be writable (only) by nextcloud user. +chown nextcloud /var/log/nextcloud +chmod 750 /var/log/nextcloud + +cat <