Преглед изворни кода

Update _common.sh with install_zabbix_repo

Mickael-Martin пре 6 година
родитељ
комит
b0166a2b23
1 измењених фајлова са 6 додато и 0 уклоњено
  1. 6 0
      scripts/_common.sh

+ 6 - 0
scripts/_common.sh

@@ -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 "If Zabbix agent can't start, please open a issue on https://github.com/YunoHost-Apps/zabbix_ynh/issues"
    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 
 }