aboutsummaryrefslogtreecommitdiffstats
path: root/community/nextcloud/nextcloud-initscript.post-install
blob: 6d664a5026c0074afcc6cbd494696b94d84ba4ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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