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:
parent
b2408f45e0
commit
7f876ea2f9
1 changed files with 6 additions and 0 deletions
|
@ -52,6 +52,12 @@ killall zabbix_agentd
|
||||||
DEBIAN_FRONTEND=noninteractive apt purge zabbix-release -y
|
DEBIAN_FRONTEND=noninteractive apt purge zabbix-release -y
|
||||||
ynh_remove_app_dependencies
|
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
|
# REMOVE THE MYSQL DATABASE
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue