Parcourir la source

add remove_zabbix_repo

Mickael-Martin il y a 6 ans
Parent
commit
73c78a9c99
1 fichiers modifiés avec 6 ajouts et 0 suppressions
  1. 6 0
      scripts/_common.sh

+ 6 - 0
scripts/_common.sh

@@ -172,4 +172,10 @@ install_zabbix_repo(){
     ynh_add_extra_apt_repos__3_path=$(find /var/cache/yunohost/ /etc/yunohost/apps/zabbix/ -name "ynh_add_extra_apt_repos__3" | tail -n 1)
     source "$ynh_add_extra_apt_repos__3_path"
     ynh_install_extra_repo --repo="http://repo.zabbix.com/zabbix/4.4/debian $(lsb_release -sc) main" --key=https://repo.zabbix.com/zabbix-official-repo.key  --priority=999  --name=zabbix
+}
+
+remove_zabbix_repo(){
+    ynh_add_extra_apt_repos__3_path=$(find /var/cache/yunohost/ /etc/yunohost/apps/zabbix/ -name "ynh_add_extra_apt_repos__3" | tail -n 1)
+    source "$ynh_add_extra_apt_repos__3_path"
+    ynh_remove_extra_repo --name=zabbix
 }