Master to Linux, Ubuntu service to new branch

This commit is contained in:
AJ Salkeld
2016-07-16 18:20:19 +01:00
parent fbaac019ba
commit 3c639abc7a

View File

@@ -128,11 +128,11 @@ ngx_sites() {
ngx_reload() { ngx_reload() {
read -p "Would you like to reload the Nginx configuration now? (Y/n) " reload read -p "Would you like to reload the Nginx configuration now? (Y/n) " reload
[[ "$reload" != "n" && "$reload" != "N" ]] && sudo service nginx reload [[ "$reload" != "n" && "$reload" != "N" ]] && invoke-rc.d nginx reload
} }
ngx_reload_now() { ngx_reload_now() {
sudo service nginx reload invoke-rc.d nginx reload
} }
ngx_error() { ngx_error() {