add wordops version into upstream.conf
This commit is contained in:
5
install
5
install
@@ -425,6 +425,9 @@ wo_upgrade_nginx() {
|
|||||||
rm -f /tmp/nginx-wo.key
|
rm -f /tmp/nginx-wo.key
|
||||||
sudo apt-get update
|
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
|
# stop nginx
|
||||||
service nginx stop
|
service nginx stop
|
||||||
|
|
||||||
@@ -488,7 +491,7 @@ wo_upgrade_nginx() {
|
|||||||
[ -f "$HOME/nginx-block" ] && {
|
[ -f "$HOME/nginx-block" ] && {
|
||||||
mv "$HOME/nginx-block" /etc/apt/preferences.d/nginx-block
|
mv "$HOME/nginx-block" /etc/apt/preferences.d/nginx-block
|
||||||
}
|
}
|
||||||
|
fi
|
||||||
} >> "$wo_install_log" 2>&1
|
} >> "$wo_install_log" 2>&1
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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
|
# PHP 5.6
|
||||||
#-------------------------------
|
#-------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user