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

Fix zabbix-release

This commit is contained in:
yalh76 2022-02-03 03:34:04 +01:00
parent 0fdcf79aee
commit 1f8803fa7e
2 changed files with 0 additions and 12 deletions

View file

@ -83,7 +83,6 @@ ynh_script_progression --message="Removing dependencies..."
#Remove config file detection
delete_initZabbixConf
DEBIAN_FRONTEND=noninteractive apt-get purge zabbix-release -y
ynh_remove_app_dependencies
ynh_remove_extra_repo --name=$app

View file

@ -101,17 +101,6 @@ ynh_remove_logrotate
# Check if new zabbix version is available on repo"
ynh_package_update
zabbixReleaseInstalledVersion=$(apt-cache policy zabbix-release | sed -n '2p' | grep -Po ".* \K(.*)")
if [[ "$trustedversion" > "$zabbixReleaseInstalledVersion" ]]
then
upgrade_type="UPGRADE_APP"
fi
if [ -f "/etc/zabbix/web/zabbix.conf.php" ]
then
ynh_secure_remove --file="/etc/zabbix/web/zabbix.conf.php"
fi
ynh_add_config --template="../conf/etc_zabbix_web_zabbix.conf.php" --destination="/etc/zabbix/web/zabbix.conf.php"