projects/aports·blob master · refs

28 lines · 688 B

1#!/bin/sh
2
3# It's not needed to be writable for www-data group when running with php-fpm.
4for dir in /etc/nextcloud \
5 /etc/nextcloud/config.php \
6 /var/lib/nextcloud/data \
7 /var/lib/nextcloud/apps
8do
9 chmod g-w $dir
10done
11chgrp root /etc/nextcloud/config.php
12
13# This must be writable (only) by nextcloud user.
14chmod 750 /var/log/nextcloud
15
16mkdir /var/tmp/nextcloud # If /var/tmp doesn't exist there's a big problem
17chown nextcloud /var/tmp/nextcloud
18chmod 700 /var/tmp/nextcloud
19
20cat <<EOF
21*
22* Point your web server to /run/nextcloud/fastcgi.sock and start Nextcloud with
23* /etc/init.d/nextcloud start. You can modify php-fpm settings in
24* /etc/php85/fpm.d/nextcloud.conf.
25*
26EOF
27
28exit 0