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

Update repo during upgrade

This commit is contained in:
yalh76 2022-01-23 15:43:10 +01:00
parent 9752118595
commit f912137c9e
2 changed files with 2 additions and 0 deletions

View file

@ -220,6 +220,7 @@ check_proc_zabbixagent () {
# Install Zabbix repo
#
install_zabbix_repo(){
ynh_remove_extra_repo --name=zabbix
ynh_install_extra_repo --repo="http://repo.zabbix.com/zabbix/5.0/debian $(lsb_release -sc) main" --key=https://repo.zabbix.com/zabbix-official-repo.key --priority=999 --name=zabbix
}

View file

@ -159,6 +159,7 @@ if [ "$upgrade_type" == "UPGRADE_APP" ]
then
ynh_script_progression --message="Upgrading dependencies..."
install_zabbix_repo
DEBIAN_FRONTEND=noninteractive apt-mark unhold zabbix-server-mysql zabbix-frontend-php
ynh_exec_warn_less ynh_install_app_dependencies $pkg_dependencies
fi