Remove socket file before listening for reload
This commit is contained in:
1 parent
ea14fb0543
commit
ee40473a18
1 file changed
+1
@@ -7,6 +7,7 @@ apt-get install -y nginx dnsutils
|
|||||||
|
|
||||||
cat<<EOF > /etc/init/nginx-reloader.conf
|
cat<<EOF > /etc/init/nginx-reloader.conf
|
||||||
script
|
script
|
||||||
|
rm -rf /home/git/reload-nginx
|
||||||
echo | sudo -u git nc -l -U /home/git/reload-nginx && /etc/init.d/nginx reload
|
echo | sudo -u git nc -l -U /home/git/reload-nginx && /etc/init.d/nginx reload
|
||||||
end script
|
end script
|
||||||
respawn
|
respawn
|
||||||
|
|||||||
Reference in new issue
Block a user