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

Update with installing official repo (pinning used)

This commit is contained in:
Mickael-Martin 2019-10-10 13:35:45 +02:00
parent 72454a47d4
commit 3e0608c7b0

View file

@ -120,9 +120,11 @@ if [ "$(dpkg -l zabbix-release 2>/dev/null | wc -l)" -ne 0 ];then
fi
#patch if zabbix-release has Candidate version but no Installed version
if [ "$(apt-cache policy zabbix-release | sed -n '2p' | grep -Po ".* \K(.*)" | grep -e '(.*)' -c)" -eq 1 ];then
install_zabbix_repo
forceupdate=1
if [ -f "/etc/apt/sources.list.d/zabbix.list" ];then
if [ "$(grep -c "4.2" /etc/apt/sources.list.d/zabbix.list)" -eq 1 ];then
install_zabbix_repo
forceupdate=1
fi
fi
#=================================================