Sfoglia il codice sorgente

Merge branch 'patch-remove-zabbix-client-service' into 'master'

patch to remove old zabbix-client service

See merge request Mickael-Martin/zabbix_ynh!38
Mickael-Martin 5 anni fa
parent
commit
6427793c61
1 ha cambiato i file con 6 aggiunte e 0 eliminazioni
  1. 6 0
      scripts/upgrade

+ 6 - 0
scripts/upgrade

@@ -110,6 +110,12 @@ if [ -f "/etc/apt/sources.list.d/zabbix.list" ];then
     fi
 fi
 
+#patch to remove old zabbix-client service
+if [ ! -z "$(yunohost service status | grep zabbix-client)" ];then 
+    ynh_print_info "remove zabbix-client old service"
+    yunohost service remove zabbix-client
+fi
+
 #=================================================
 # STANDARD UPGRADE STEPS
 #=================================================