update nginx-php

This commit is contained in:
Wonderfall
2017-04-26 01:16:03 +02:00
parent 63a523a088
commit 39c2418c6d
6 changed files with 67 additions and 48 deletions

View File

@ -1,6 +1,2 @@
#!/bin/sh
if test -f ./setup; then
source ./setup
fi
exec nginx
exec nginx

View File

@ -1,4 +0,0 @@
#!/bin/sh
mkdir -p /nginx/logs /nginx/run
chown -R $UID:$GID /nginx
sed -i 's/<UPLOAD_MAX_SIZE>/$UPLOAD_MAX_SIZE/g' /nginx/conf/nginx.conf

View File

@ -1,6 +1,2 @@
#!/bin/sh
if test -f ./setup; then
source ./setup
fi
exec php-fpm
exec php-fpm

View File

@ -1,8 +0,0 @@
#!/bin/sh
mkdir -p /php/php-fpm.d /php/logs /php/run
sed -i -e 's/<UPLOAD_MAX_SIZE>/$UPLOAD_MAX_SIZE' \
-e 's/<MEMORY_LIMIT>/$PHP_MEMORY_LIMIT' \
/usr/local/etc/php-fpm.conf
chown -R $UID:GID /php /usr/local/etc/php-fpm.conf