Skip to content

Commit 4f7239f

Browse files
authored
fix: PID file location in init.d script (#323)
1 parent 04c6eab commit 4f7239f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Dockerfile-debian.template

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ RUN sed -i 's,listen 80;,listen 8080;,' /etc/nginx/conf.d/default.co
130130
&& sed -i '/user nginx;/d' /etc/nginx/nginx.conf \
131131
&& sed -i 's,\(/var\)\{0\,1\}/run/nginx.pid,/tmp/nginx.pid,' /etc/nginx/nginx.conf \
132132
&& sed -i "/^http {/a \ proxy_temp_path /tmp/proxy_temp;\n client_body_temp_path /tmp/client_temp;\n fastcgi_temp_path /tmp/fastcgi_temp;\n uwsgi_temp_path /tmp/uwsgi_temp;\n scgi_temp_path /tmp/scgi_temp;\n" /etc/nginx/nginx.conf \
133+
&& sed -i 's,PIDFILE=${PIDFILE:-/run/nginx.pid},PIDFILE=${PIDFILE:-/tmp/nginx.pid},' /etc/init.d/nginx \
133134
# nginx user must own the cache and etc directory to write cache and tweak the nginx config
134135
&& chown -R $UID:0 /var/cache/nginx \
135136
&& chmod -R g+w /var/cache/nginx \

0 commit comments

Comments
 (0)