diff options
author | A. Wilcox <awilcox@wilcox-tech.com> | 2018-11-28 22:19:36 +0000 |
---|---|---|
committer | A. Wilcox <awilcox@wilcox-tech.com> | 2018-11-28 22:19:36 +0000 |
commit | 9fc671264764cd0765830572daa11574c92fdba8 (patch) | |
tree | 580da54b1f122edd844dd8bb9a3e6c1ab0c05156 /user/nextcloud/nextcloud-initscript.post-install | |
parent | b0ec6a7873c7835965e2bb923e0d87ea345352d4 (diff) | |
parent | 020a30d93a101127fdd2f494026fc80c632ae728 (diff) | |
download | packages-9fc671264764cd0765830572daa11574c92fdba8.tar.gz packages-9fc671264764cd0765830572daa11574c92fdba8.tar.bz2 packages-9fc671264764cd0765830572daa11574c92fdba8.tar.xz packages-9fc671264764cd0765830572daa11574c92fdba8.zip |
Merge branch 'nextcloud' into 'master'
user/nextcloud: new package
See merge request !110
Diffstat (limited to 'user/nextcloud/nextcloud-initscript.post-install')
-rw-r--r-- | user/nextcloud/nextcloud-initscript.post-install | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/user/nextcloud/nextcloud-initscript.post-install b/user/nextcloud/nextcloud-initscript.post-install new file mode 100644 index 000000000..6b7fdf671 --- /dev/null +++ b/user/nextcloud/nextcloud-initscript.post-install @@ -0,0 +1,24 @@ +#!/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 \ + /var/lib/nextcloud/appstore +do + chmod g-w $dir +done +chgrp root /etc/nextcloud/config.php + +# This must be writable (only) by nextcloud user. +chmod 750 /var/log/nextcloud + +cat <<"EOF" +* +* Point your web server to /run/nextcloud/fastcgi.sock and start +* Nextcloud with `service nextcloud start`. You can modify php-fpm +* settings in /etc/php7/fpm.d/nextcloud.conf. +* +EOF + +exit 0 |