check file exists before removing
This commit is contained in:
1 parent
1f4dab1fd8
commit
6c6196fd5a
1 file changed
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user