mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-09-21 21:51:34 +02:00
fpm-pool.conf: Need to specify user and group else php-fpm8 cannot start nextcloud-initscript.post-install: Using install in APKBUILD caused /var/tmp to become 755, so create with mkdir in the post install. Also because of the switch to php8, the settings are in /etc/php8/fpm.d/nextcloud.conf nextcloud-mysql.cnf: MariaDB 10.6 has started deprecating write support for compressed tables, but Nextcloud requires write support. See https://github.com/nextcloud/server/issues/25436
29 lines
687 B
Bash
29 lines
687 B
Bash
#!/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
|