mirror of
https://github.com/joglomedia/LEMPer.git
synced 2026-04-11 23:48:19 +00:00
minor update
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user