瀏覽代碼

patch to remove old zabbix-client service

Mickael-Martin 5 年之前
父節點
當前提交
757bdca600
共有 1 個文件被更改,包括 6 次插入0 次删除
  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
 #=================================================