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

test if /var/cache/apt/archives/zabbix-server-mysql* exists

This commit is contained in:
Mickael-Martin 2020-12-11 13:37:52 +01:00
parent f179293442
commit 1191b4041f

View file

@ -94,7 +94,9 @@ ynh_app_setting_set "$app" language "$language"
### - And the section "UPGRADE DEPENDENCIES" in the upgrade script
ynh_script_progression --message="Remove Zabbix if already installed" -w 1
apt-get purge zabbix* -y
ynh_secure_remove /var/cache/apt/archives/zabbix-server-mysql*
if compgen -G "/var/cache/apt/archives/zabbix-server-mysql*" > /dev/null; then
ynh_secure_remove /var/cache/apt/archives/zabbix-server-mysql*
fi
ynh_script_progression --message="Install Zabbix repository" -w 3
install_zabbix_repo