nextcloud: add UPLOAD_MAX_SIZE variable

This commit is contained in:
Wonderfall
2016-09-19 12:59:09 +02:00
parent e0c144d7cb
commit d2969c59ea
13 changed files with 22 additions and 12 deletions

View File

@ -4,6 +4,8 @@ if [ ! -f /config/config.php ]; then
echo -e "<?php\n\$CONFIG = array (\n 'datadirectory' => '/data',\n);" > /config/config.php
fi
sed -i -e "s/<UPLOAD_MAX_SIZE>/$UPLOAD_MAX_SIZE/g" /etc/nginx/nginx.conf /etc/php7/php-fpm.conf
chown -R $UID:$GID /nextcloud /data /config /apps2 /etc/nginx /etc/php7 /var/log /var/lib/nginx /tmp /etc/s6.d
ln -s /config/config.php /nextcloud/config/config.php
ln -s /apps2 /nextcloud