mirror of
https://github.com/dokku/dokku.git
synced 2025-12-29 00:25:08 +01:00
check file exists before removing
This commit is contained in:
@@ -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