diff --git a/scripts/install_nginx.sh b/scripts/install_nginx.sh index 427a874..944509d 100755 --- a/scripts/install_nginx.sh +++ b/scripts/install_nginx.sh @@ -103,7 +103,7 @@ function nginx_install_menu() { } function init_nginx_install() { - echo "\nWelcome to Nginx installation script" + echo -e "\nWelcome to Nginx installation script" # Install Nginx custom nginx_install_menu @@ -169,14 +169,14 @@ function init_nginx_install() { # Restart Nginx server if [[ $(ps -ef | grep -v grep | grep nginx | wc -l) > 0 ]]; then run service nginx restart - status "Nginx web server restarted successfully." + status -e "\nNginx web server restarted successfully." elif [[ -n $(which nginx) ]]; then run service nginx start if [[ $(ps -ef | grep -v grep | grep nginx | wc -l) > 0 ]]; then - status "Nginx web server started successfully." + status -e "\nNginx web server started successfully." else - warning "Something wrong with Nginx installation." + warning -e "\nSomething wrong with Nginx installation." fi fi } @@ -184,7 +184,7 @@ function init_nginx_install() { # Start running things from a call at the end so if this script is executed # after a partial download it doesn't do anything. if [[ -n $(which nginx) && -d /etc/nginx/sites-available ]]; then - warning "Nginx web server already exists. Installation skipped..." + warning -e "\nNginx web server already exists. Installation skipped..." else init_nginx_install "$@" fi diff --git a/scripts/install_nginx_from_source.sh b/scripts/install_nginx_from_source.sh index 0df0290..51f872a 100755 --- a/scripts/install_nginx_from_source.sh +++ b/scripts/install_nginx_from_source.sh @@ -924,9 +924,9 @@ with --no-deps-check." # Create default ngx_pagespeed cache directory if [ ! -d /var/cache/nginx ]; then - run mkdir "/var/cache/nginx" - run mkdir "/var/cache/nginx/ngx_pagespeed" - run chmod -hR www-data: "/var/cache/nginx" + run mkdir /var/cache/nginx + run mkdir /var/cache/nginx/ngx_pagespeed + run chown -hR www-data:root /var/cache/nginx fi if "$DYNAMIC_MODULE"; then diff --git a/scripts/install_php.sh b/scripts/install_php.sh index 104bdb6..3133b73 100755 --- a/scripts/install_php.sh +++ b/scripts/install_php.sh @@ -530,7 +530,7 @@ function init_php_install() { # Start running things from a call at the end so if this script is executed # after a partial download it doesn't do anything. if [[ -n $(which php) && -n $(which php7.0) && -n $(which php7.1) && -n $(which php7.2) && -n $(which php7.3) ]]; then - warning "All available PHP version has already been installed. Installation skipped..." + warning -e "\nAll available PHP version has already been installed. Installation skipped..." else init_php_install "$@" fi