diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2017-06-22 20:07:36 +0200 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2017-06-22 21:39:02 +0200 |
commit | cfba4b94512beb995453a6e4194203a6a268828d (patch) | |
tree | d83942178f099fb6119f025a4a617201cf0a5596 /community/nextcloud/nextcloud-initscript.post-install | |
parent | fe766f7e20814be5141035aeecf9ba7a70eb7cd4 (diff) | |
download | aports-cfba4b94512beb995453a6e4194203a6a268828d.tar.bz2 aports-cfba4b94512beb995453a6e4194203a6a268828d.tar.xz |
community/nextcloud: add subpkg -initscript
Diffstat (limited to 'community/nextcloud/nextcloud-initscript.post-install')
-rw-r--r-- | community/nextcloud/nextcloud-initscript.post-install | 26 |
1 files changed, 26 insertions, 0 deletions
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 <<EOF +* +* Point your web server to /run/nextcloud/fastcgi.sock and start Nextcloud with +* /etc/init.d/nextcloud start. You can modify php-fpm settings in +* /etc/php7/fpm.d/nextcloud.conf. +* +EOF + +exit 0 |