refactor(): move to wonderfall/nginx-php (possible fix #10)

This commit is contained in:
Hardware
2017-08-29 22:25:00 +02:00
parent aacde24533
commit 94d9d894c3
9 changed files with 40 additions and 125 deletions

View File

@@ -1,10 +1,11 @@
#!/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
# Set attachment size and memory limit
sed -i -e "s/<UPLOAD_MAX_SIZE>/$UPLOAD_MAX_SIZE/g" /nginx/conf/nginx.conf /php/etc/php-fpm.conf \
-e "s/<MEMORY_LIMIT>/$MEMORY_LIMIT/g" /php/etc/php-fpm.conf
# Fix permissions
chown -R $UID:$GID /rainloop/data /services /var/log /var/lib/nginx
chown -R $UID:$GID /rainloop/data /etc/s6.d /nginx /php /var/log
# RUN !
exec su-exec $UID:$GID /bin/s6-svscan /services
exec su-exec $UID:$GID /bin/s6-svscan /etc/s6.d