소스 검색

remove some garbage

ksieren 3 년 전
부모
커밋
3696e9a3ed
2개의 변경된 파일7개의 추가작업 그리고 6개의 파일을 삭제
  1. 2 1
      Dockerfile
  2. 5 5
      rootfs/etc/service/php/run

+ 2 - 1
Dockerfile

@@ -61,7 +61,8 @@ RUN apk --no-cache add \
 # Make sure files/folders needed by the processes are accessable when they run under the nobody user
     && chown -R nobody.nobody /run \
     && chown -R nobody.nobody /var/lib/nginx \
-    && chown -R nobody.nobody /var/log/nginx
+    && chown -R nobody.nobody /var/log/nginx \
+    && chown -R nobody.nobody /var/log/php7
 
 RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/bin --filename=composer
 

+ 5 - 5
rootfs/etc/service/php/run

@@ -2,13 +2,13 @@
 
 # Replace ENV vars in configuration files
 tmpfile=$(mktemp)
-cat /etc/php81/conf.d/custom.ini | envsubst "$(env | cut -d= -f1 | sed -e 's/^/$/')" | tee "$tmpfile" > /dev/null
-mv "$tmpfile" /etc/php81/conf.d/custom.ini
+cat /etc/php7/conf.d/custom.ini | envsubst "$(env | cut -d= -f1 | sed -e 's/^/$/')" | tee "$tmpfile" > /dev/null
+mv "$tmpfile" /etc/php7/conf.d/custom.ini
 
 tmpfile=$(mktemp)
-cat /etc/php81/php-fpm.d/www.conf | envsubst "$(env | cut -d= -f1 | sed -e 's/^/$/')" | tee "$tmpfile" > /dev/null
-mv "$tmpfile" /etc/php81/php-fpm.d/www.conf
+cat /etc/php7/php-fpm.d/www.conf | envsubst "$(env | cut -d= -f1 | sed -e 's/^/$/')" | tee "$tmpfile" > /dev/null
+mv "$tmpfile" /etc/php7/php-fpm.d/www.conf
 
 # pipe stderr to stdout and run php-fpm
 exec 2>&1
-exec php-fpm81 -F
+exec php-fpm7 -F