remove socket before starting
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
146fe60eef
commit
2827edd0a5
|
@ -1,6 +1,7 @@
|
||||||
#!/bin/ash
|
#!/bin/ash
|
||||||
if ! [ -z $NGINX_LISTEN_SOCKET ]; then
|
if ! [ -z $NGINX_LISTEN_SOCKET ]; then
|
||||||
sed -i 's#listen 80#listen unix:/var/run/nginx.sock#' /etc/nginx/conf.d/default.conf
|
sed -i 's#listen 80#listen unix:/var/run/nginx.sock#' /etc/nginx/conf.d/default.conf
|
||||||
|
rm -f /var/run/nginx.sock
|
||||||
fi
|
fi
|
||||||
nginx
|
nginx
|
||||||
|
|
||||||
|
|
Reference in a new issue