Force remove sites-enabled directory, even when empty

This commit is contained in:
Jose Diaz-Gonzalez committed 2015-01-16 16:52:50 -05:00
1 parent 8fba61e212
commit 0fcc541e4f
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -16,7 +16,7 @@ if ARGV[0] == "onboot"
f.puts " }" f.puts " }"
f.puts "}" f.puts "}"
end end
`rm /etc/nginx/sites-enabled/*` `rm -f /etc/nginx/sites-enabled/*`
puts "Installed Upstart service and default Nginx virtualhost for installer to run on boot." puts "Installed Upstart service and default Nginx virtualhost for installer to run on boot."
exit exit
end end
+1 -1
View File
@@ -18,7 +18,7 @@ case "$1" in
echo ' }' >> $NGINX_CONF echo ' }' >> $NGINX_CONF
echo '}' >> $NGINX_CONF echo '}' >> $NGINX_CONF
rm /etc/nginx/sites-enabled/* rm -f /etc/nginx/sites-enabled/*
service nginx reload service nginx reload
service dokku-installer start service dokku-installer start
;; ;;