From e1f23dd293fe62b3ebe66b400725262992518f16 Mon Sep 17 00:00:00 2001 From: Edi Septriyanto Date: Wed, 25 Dec 2019 23:53:57 +0700 Subject: [PATCH] fix nginx install --- scripts/install_nginx.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/scripts/install_nginx.sh b/scripts/install_nginx.sh index 66a599c..5e45189 100755 --- a/scripts/install_nginx.sh +++ b/scripts/install_nginx.sh @@ -807,7 +807,7 @@ function init_nginx_install() { # Enable in start up. run systemctl enable nginx.service - # Unmask (?). + # Masked (?). run systemctl unmask nginx.service ;; *) @@ -943,7 +943,8 @@ function init_nginx_install() { run service nginx reload -s status "NGiNX HTTP server restarted successfully." else - error "Nginx configuration test failed." + error "Nginx configuration test failed. Please correct the error below:" + run nginx -t fi elif [[ -n $(command -v nginx) ]]; then if nginx -t 2>/dev/null > /dev/null; then @@ -955,7 +956,8 @@ function init_nginx_install() { warning "Something wrong with NGiNX installation." fi else - error "Nginx configuration test failed." + error "Nginx configuration test failed. Please correct the error below:" + run nginx -t fi fi fi