diff --git a/entrypoint.sh b/entrypoint.sh index 37a330f..d31c16b 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -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