minor update

This commit is contained in:
Eddie Septr
2019-06-13 22:11:37 +07:00
parent a2bf5928ae
commit 1f08ec99be
3 changed files with 9 additions and 9 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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