remove socket before starting
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Simon Bruder 2019-04-22 14:12:00 +00:00
parent 146fe60eef
commit 2827edd0a5
No known key found for this signature in database
GPG key ID: 6F03E0000CC5B62F

View file

@ -1,6 +1,7 @@
#!/bin/ash
if ! [ -z $NGINX_LISTEN_SOCKET ]; then
sed -i 's#listen 80#listen unix:/var/run/nginx.sock#' /etc/nginx/conf.d/default.conf
rm -f /var/run/nginx.sock
fi
nginx