1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-25 12:15:32 +03:00
aports/community/nextcloud/nextcloud-initscript.post-install
Jakub Jirutka 99b45de81c community/nextcloud: create user/group for base pkg
It somehow doesn't work when user/group is created by pre-install
script of subpackage - installed files have wrong GID.
2017-06-25 02:42:47 +02:00

24 lines
547 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
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