From 6c6196fd5adbf2c1e356367380acce4dcca9a1d5 Mon Sep 17 00:00:00 2001 From: Eugene Ware Date: Mon, 8 Jul 2013 15:07:41 +1000 Subject: [PATCH] check file exists before removing --- plugins/nginx-vhosts/install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/nginx-vhosts/install b/plugins/nginx-vhosts/install index b99320665..f03b0b80c 100755 --- a/plugins/nginx-vhosts/install +++ b/plugins/nginx-vhosts/install @@ -12,7 +12,7 @@ start on runlevel [2345] stop on runlevel [!2345] script - rm -rf /home/git/reload-nginx + [[ -f /home/git/reload-nginx ]] && rm -rf /home/git/reload-nginx echo | sudo -u git nc -l -U /home/git/reload-nginx && /etc/init.d/nginx reload end script respawn