remove socket before starting
continuous-integration/drone/push Build is passing Details

master
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
1 changed files with 1 additions and 0 deletions

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