Procházet zdrojové kódy

apt purge zabbix* -y

Mickael-Martin před 6 roky
rodič
revize
996bab5ad7
1 změnil soubory, kde provedl 3 přidání a 1 odebrání
  1. 3 1
      scripts/install

+ 3 - 1
scripts/install

@@ -95,8 +95,10 @@ ynh_app_setting_set "$app" language "$language"
 ###		- Remove the section "REMOVE DEPENDENCIES" in the remove script
 ###		- Remove the section "REMOVE DEPENDENCIES" in the remove script
 ###		- As well as the section "REINSTALL DEPENDENCIES" in the restore script
 ###		- As well as the section "REINSTALL DEPENDENCIES" in the restore script
 ###		- And the section "UPGRADE DEPENDENCIES" in the upgrade script
 ###		- And the section "UPGRADE DEPENDENCIES" in the upgrade script
-ynh_print_info "Install Zabbix repository"
+ynh_print_info "Remove Zabbix if already installed"
+apt purge zabbix* -y
 
 
+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"
 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
 dpkg -i zabbix-release_*.deb
 rm zabbix-release_*.deb
 rm zabbix-release_*.deb