add wordops version into upstream.conf

This commit is contained in:
VirtuBox
2019-03-25 10:17:51 +01:00
parent 55157d010b
commit 58f9acc790
2 changed files with 61 additions and 57 deletions

View File

@@ -425,6 +425,9 @@ wo_upgrade_nginx() {
rm -f /tmp/nginx-wo.key
sudo apt-get update
CHECK_NGINX_UPSTREAM_VERSION=$(grep "v3.9.5" /etc/nginx/conf.d/upstream.conf)
if [ -z "$CHECK_NGINX_UPSTREAM_VERSION" ]; then
# stop nginx
service nginx stop
@@ -488,7 +491,7 @@ wo_upgrade_nginx() {
[ -f "$HOME/nginx-block" ] && {
mv "$HOME/nginx-block" /etc/apt/preferences.d/nginx-block
}
fi
} >> "$wo_install_log" 2>&1
}

View File

@@ -1,4 +1,5 @@
# Common upstream settings
# NGINX UPSTREAM CONFIGURATION v3.9.5
# DO NOT MODIFY, ALL CHANGES WILL BE LOST AFTER AN WordOps (wo) UPDATE
#-------------------------------
# PHP 5.6
#-------------------------------