Force nginx config install only for old releases
This commit is contained in:
6
install
6
install
@@ -681,8 +681,10 @@ if [ -x /usr/local/bin/wo ]; then
|
|||||||
fi
|
fi
|
||||||
if [ -z "$wo_preserve_config" ]; then
|
if [ -z "$wo_preserve_config" ]; then
|
||||||
if [ -n "$(command -v nginx)" ]; then
|
if [ -n "$(command -v nginx)" ]; then
|
||||||
wo_lib_echo "Upgrading Nginx" | tee -ai $wo_install_log
|
if [ ! -f /etc/nginx/common/release ] || [[ -z $(grep "v3.9.5." /etc/nginx/common/release) && -z $(grep "v3.9.6" /etc/nginx/common/release) ]]; then
|
||||||
wo_upgrade_nginx | tee -ai $wo_install_log
|
wo_lib_echo "Upgrading Nginx" | tee -ai $wo_install_log
|
||||||
|
wo_upgrade_nginx | tee -ai $wo_install_log
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
wo_update_latest | tee -ai $wo_install_log
|
wo_update_latest | tee -ai $wo_install_log
|
||||||
|
|||||||
@@ -1520,7 +1520,6 @@ class WOStackController(CementBaseController):
|
|||||||
"/master/mysqltuner.pl",
|
"/master/mysqltuner.pl",
|
||||||
"/usr/bin/mysqltuner",
|
"/usr/bin/mysqltuner",
|
||||||
"MySQLTuner"]]
|
"MySQLTuner"]]
|
||||||
|
|
||||||
else:
|
else:
|
||||||
Log.debug(self, "MySQL connection is already alive")
|
Log.debug(self, "MySQL connection is already alive")
|
||||||
Log.info(self, "MySQL connection is already alive")
|
Log.info(self, "MySQL connection is already alive")
|
||||||
@@ -2067,6 +2066,9 @@ class WOStackController(CementBaseController):
|
|||||||
"libexec/netdata-"
|
"libexec/netdata-"
|
||||||
"uninstaller.sh -y -f")
|
"uninstaller.sh -y -f")
|
||||||
|
|
||||||
|
if (set(["fail2ban"]).issubset(set(apt_packages))):
|
||||||
|
WOService.stop_service(self, 'fail2ban')
|
||||||
|
|
||||||
if (apt_packages):
|
if (apt_packages):
|
||||||
Log.info(self, "Purging packages, please wait...")
|
Log.info(self, "Purging packages, please wait...")
|
||||||
WOAptGet.remove(self, apt_packages, purge=True)
|
WOAptGet.remove(self, apt_packages, purge=True)
|
||||||
|
|||||||
Reference in New Issue
Block a user