Verify nginx configuration and toss away reload on failure

Refs #1880
This commit is contained in:
Jose Diaz-Gonzalez committed 2016-02-03 12:55:18 -05:00
1 parent a6d79b20bd
commit 174b5b74ad
1 file changed
+1 -1
+1 -1
View File
@@ -15,7 +15,7 @@ main() {
rm -f /etc/systemd/system/dokku-redeploy.service rm -f /etc/systemd/system/dokku-redeploy.service
rm -f /etc/update-motd.d/99-dokku rm -f /etc/update-motd.d/99-dokku
service nginx reload (nginx -t && service nginx reload) || true
if [[ "$1" == "purge" ]]; then if [[ "$1" == "purge" ]]; then
rm -f ${DOKKU_ROOT}/.dokkurc ${DOKKU_ROOT}/dokkurc ${DOKKU_ROOT}/tls rm -f ${DOKKU_ROOT}/.dokkurc ${DOKKU_ROOT}/dokkurc ${DOKKU_ROOT}/tls