| 1 | #!/bin/sh |
| 2 | |
| 3 | # It's not needed to be writable for www-data group when running with php-fpm. |
| 4 | for dir in /etc/nextcloud \ |
| 5 | /etc/nextcloud/config.php \ |
| 6 | /var/lib/nextcloud/data \ |
| 7 | /var/lib/nextcloud/apps |
| 8 | do |
| 9 | chmod g-w $dir |
| 10 | done |
| 11 | chgrp root /etc/nextcloud/config.php |
| 12 | |
| 13 | # This must be writable (only) by nextcloud user. |
| 14 | chmod 750 /var/log/nextcloud |
| 15 | |
| 16 | mkdir /var/tmp/nextcloud # If /var/tmp doesn't exist there's a big problem |
| 17 | chown nextcloud /var/tmp/nextcloud |
| 18 | chmod 700 /var/tmp/nextcloud |
| 19 | |
| 20 | cat <<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 | * |
| 26 | EOF |
| 27 | |
| 28 | exit 0 |