Explorar el Código

add ynh_install_extra_repo

Mickael-Martin hace 6 años
padre
commit
fe85a9375b
Se han modificado 1 ficheros con 3 adiciones y 3 borrados
  1. 3 3
      scripts/install

+ 3 - 3
scripts/install

@@ -99,9 +99,9 @@ ynh_print_info "Remove Zabbix if already installed"
 apt purge zabbix* -y
 apt purge zabbix* -y
 
 
 ynh_print_info "Install Zabbix repository"
 ynh_print_info "Install Zabbix repository"
-wget -q "https://repo.zabbix.com/zabbix/4.2/debian/pool/main/z/zabbix-release/zabbix-release_4.2-1%2Bstretch_all.deb"
-dpkg -i zabbix-release_*.deb
-rm zabbix-release_*.deb
+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 --key=https://repo.zabbix.com/zabbix-official-repo.key  --priority=999
 
 
 ynh_print_info "Update and install dependencies"
 ynh_print_info "Update and install dependencies"
 #ynh_package_update no need cause ynh_install_app_dependencies after
 #ynh_package_update no need cause ynh_install_app_dependencies after