Browse Source

patch to remove old zabbix-client service

Mickael-Martin 5 years ago
parent
commit
757bdca600
1 changed files with 6 additions and 0 deletions
  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
 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
 # STANDARD UPGRADE STEPS
 #=================================================
 #=================================================