privatebin: use nginx-php as underlying image

This commit is contained in:
Wonderfall
2017-04-29 03:16:15 +02:00
parent d85d17067d
commit e1409accc1
10 changed files with 61 additions and 133 deletions

View File

@ -0,0 +1,6 @@
#!/bin/sh
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
chown -R $UID:$GID /privatebin /nginx /php /tmp /etc/s6.d
exec su-exec $UID:$GID /bin/s6-svscan /etc/s6.d