Fix package list
This commit is contained in:
4
install
4
install
@@ -872,7 +872,7 @@ else
|
|||||||
else
|
else
|
||||||
wo_install | tee -ai $wo_install_log
|
wo_install | tee -ai $wo_install_log
|
||||||
fi
|
fi
|
||||||
if [ -n "$(command -v nginx)" ]; then
|
if command_exists nginx; then
|
||||||
wo_lib_echo "Upgrading Nginx" | tee -ai $wo_install_log
|
wo_lib_echo "Upgrading Nginx" | tee -ai $wo_install_log
|
||||||
wo_upgrade_nginx | tee -ai $wo_install_log
|
wo_upgrade_nginx | tee -ai $wo_install_log
|
||||||
fi
|
fi
|
||||||
@@ -885,7 +885,7 @@ else
|
|||||||
wo_lib_echo "Adding systemd service tweak" | tee -ai $wo_install_log
|
wo_lib_echo "Adding systemd service tweak" | tee -ai $wo_install_log
|
||||||
wo_systemd_tweak | tee -ai $wo_install_log
|
wo_systemd_tweak | tee -ai $wo_install_log
|
||||||
fi
|
fi
|
||||||
if [ -x /usr/sbin/nginx ]; then
|
if command_exists nginx; then
|
||||||
wo_nginx_tweak | tee -ai $wo_install_log
|
wo_nginx_tweak | tee -ai $wo_install_log
|
||||||
fi
|
fi
|
||||||
if [ -d /etc/systemd/system/mariadb.service.d ]; then
|
if [ -d /etc/systemd/system/mariadb.service.d ]; then
|
||||||
|
|||||||
@@ -858,16 +858,16 @@ class WOStackController(CementBaseController):
|
|||||||
# utils
|
# utils
|
||||||
if pargs.utils:
|
if pargs.utils:
|
||||||
Log.debug(self, "Purge package variable utils")
|
Log.debug(self, "Purge package variable utils")
|
||||||
packages = packages + [['{0}22222/htdocs/php/webgrind/'
|
packages = packages + ['{0}22222/htdocs/php/webgrind/'
|
||||||
.format(WOVariables.wo_webroot),
|
.format(WOVariables.wo_webroot),
|
||||||
'{0}22222/htdocs/cache/opcache'
|
'{0}22222/htdocs/cache/opcache'
|
||||||
.format(WOVariables.wo_webroot),
|
.format(WOVariables.wo_webroot),
|
||||||
'{0}22222/htdocs/cache/nginx/'
|
'{0}22222/htdocs/cache/nginx/'
|
||||||
'clean.php'.format(WOVariables.wo_webroot),
|
'clean.php'.format(WOVariables.wo_webroot),
|
||||||
'/usr/bin/pt-query-advisor',
|
'/usr/bin/pt-query-advisor',
|
||||||
'{0}22222/htdocs/db/anemometer'
|
'{0}22222/htdocs/db/anemometer'
|
||||||
.format(WOVariables.wo_webroot)
|
.format(WOVariables.wo_webroot)
|
||||||
]]
|
]
|
||||||
|
|
||||||
if pargs.netdata:
|
if pargs.netdata:
|
||||||
Log.debug(self, "Removing Netdata")
|
Log.debug(self, "Removing Netdata")
|
||||||
@@ -897,15 +897,20 @@ class WOStackController(CementBaseController):
|
|||||||
if (set(["nginx-custom"]).issubset(set(apt_packages))):
|
if (set(["nginx-custom"]).issubset(set(apt_packages))):
|
||||||
WOService.stop_service(self, 'nginx')
|
WOService.stop_service(self, 'nginx')
|
||||||
|
|
||||||
|
if (set(["fail2ban"]).issubset(set(apt_packages))):
|
||||||
|
WOService.stop_service(self, 'fail2ban')
|
||||||
|
|
||||||
# Netdata uninstaller
|
# Netdata uninstaller
|
||||||
if (set(['/var/lib/wo/tmp/'
|
if (set(['/var/lib/wo/tmp/'
|
||||||
'kickstart.sh']).issubset(set(packages))):
|
'kickstart.sh']).issubset(set(packages))):
|
||||||
WOShellExec.cmd_exec(self, "bash /opt/netdata/usr/"
|
if WOVariables.wo_distro == 'Raspbian':
|
||||||
"libexec/netdata-"
|
WOShellExec.cmd_exec(self, "bash /usr/"
|
||||||
"uninstaller.sh -y -f")
|
"libexec/netdata-"
|
||||||
|
"uninstaller.sh -y -f")
|
||||||
if (set(["fail2ban"]).issubset(set(apt_packages))):
|
else:
|
||||||
WOService.stop_service(self, 'fail2ban')
|
WOShellExec.cmd_exec(self, "bash /opt/netdata/usr/"
|
||||||
|
"libexec/netdata-"
|
||||||
|
"uninstaller.sh -y -f")
|
||||||
|
|
||||||
if (apt_packages):
|
if (apt_packages):
|
||||||
Log.info(self, "Purging packages, please wait...")
|
Log.info(self, "Purging packages, please wait...")
|
||||||
|
|||||||
Reference in New Issue
Block a user