indentation and cleaner code

This commit is contained in:
Jack L. Frost 2015-09-15 12:25:58 +03:00
parent 0c22e184e6
commit bcccd80ba7

View File

@ -10,21 +10,16 @@ conftest() {
} }
reload() { reload() {
nginx.test_config -q || { if nginx.test_config -q; then
watchman.reload
else
watchman.err "Nginx config test failed, not reloading." watchman.err "Nginx config test failed, not reloading."
return 1 return 1
} fi
watchman.reload
} }
restart() { restart() {
nginx.test_config -q || { stop && start
watchman.err "Nginx config test failed, not restarting."
return 1
}
stop; start
} }
upgrade() { upgrade() {