feat(): add UPLOAD_MAX_SIZE variable

This commit is contained in:
Hardware
2017-08-27 16:31:04 +02:00
parent 33741f7948
commit 87d843564e
9 changed files with 25 additions and 47 deletions

View File

@@ -0,0 +1,10 @@
#!/bin/sh
# Set attachment size limit
sed -i "s/<UPLOAD_MAX_SIZE>/$UPLOAD_MAX_SIZE/g" /etc/php7/php-fpm.conf /etc/nginx/nginx.conf
# Fix permissions
chown -R $UID:$GID /rainloop /services /var/log /var/lib/nginx
# RUN !
exec su-exec $UID:$GID /bin/s6-svscan /services