refactor(): move to wonderfall/nginx-php (possible fix #10)
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user