update(): alpine 3.7

This commit is contained in:
Hardware
2018-01-13 14:57:15 +01:00
parent 94d9d894c3
commit 7b8e9f7c5e
9 changed files with 125 additions and 40 deletions

View File

@@ -1,11 +1,10 @@
#!/bin/sh
# 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
# 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/data /etc/s6.d /nginx /php /var/log
chown -R $UID:$GID /rainloop/data /services /var/log /var/lib/nginx
# RUN !
exec su-exec $UID:$GID /bin/s6-svscan /etc/s6.d
exec su-exec $UID:$GID /bin/s6-svscan /services