1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/zabbix_ynh.git synced 2024-09-03 20:36:14 +02:00

force removing old version

This commit is contained in:
Mickael-Martin 2019-04-11 23:04:40 +02:00
parent b2408f45e0
commit 7f876ea2f9

View file

@ -52,6 +52,12 @@ killall zabbix_agentd
DEBIAN_FRONTEND=noninteractive apt purge zabbix-release -y
ynh_remove_app_dependencies
#force removing if ynh_remove_app_dependencies not work (old zabbix version)
for zabbix_pkg in $(apt list --installed | grep -Po "\K(zabbix-.*)(?=/)")
do
DEBIAN_FRONTEND=noninteractive apt purge --allow-change-held-packages "$zabbix_pkg" -y
done
#=================================================
# REMOVE THE MYSQL DATABASE
#=================================================