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

Update _common.sh with install_zabbix_repo

This commit is contained in:
Mickael-Martin 2019-07-05 13:30:40 +02:00
parent 2d080ae3c2
commit b0166a2b23

View file

@ -166,4 +166,10 @@ check_proc_zabbixagent(){
ynh_print_err "Zabbix agent not started, try to start it with the yunohost interface." ynh_print_err "Zabbix agent not started, try to start it with the yunohost interface."
ynh_print_err "If Zabbix agent can't start, please open a issue on https://github.com/YunoHost-Apps/zabbix_ynh/issues" ynh_print_err "If Zabbix agent can't start, please open a issue on https://github.com/YunoHost-Apps/zabbix_ynh/issues"
fi fi
}
install_zabbix_repo(){
ynh_add_extra_apt_repos__3_path=$(find /var/cache/yunohost/ -name "ynh_add_extra_apt_repos__3")
source "$ynh_add_extra_apt_repos__3_path"
ynh_install_extra_repo --repo="http://repo.zabbix.com/zabbix/4.2/debian $(lsb_release -sc) main" --key=https://repo.zabbix.com/zabbix-official-repo.key --priority=999 --name=zabbix
} }