aboutsummaryrefslogtreecommitdiffstats
path: root/community/nextcloud23/nextcloud23-initscript.post-install
diff options
context:
space:
mode:
Diffstat (limited to 'community/nextcloud23/nextcloud23-initscript.post-install')
-rw-r--r--community/nextcloud23/nextcloud23-initscript.post-install28
1 files changed, 28 insertions, 0 deletions
diff --git a/community/nextcloud23/nextcloud23-initscript.post-install b/community/nextcloud23/nextcloud23-initscript.post-install
new file mode 100644
index 00000000000..e16e94472f6
--- /dev/null
+++ b/community/nextcloud23/nextcloud23-initscript.post-install
@@ -0,0 +1,28 @@
+#!/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/apps
+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
+
+mkdir /var/tmp/nextcloud # If /var/tmp doesn't exist there's a big problem
+chown nextcloud /var/tmp/nextcloud
+chmod 700 /var/tmp/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/php8/fpm.d/nextcloud.conf.
+*
+EOF
+
+exit 0