From 0222e79afe45d9fc55aed9a7e62ca239c228ab73 Mon Sep 17 00:00:00 2001
From: 554325746@qq.com <554325746@qq.com>
Date: 星期一, 23 十二月 2019 10:24:12 +0800
Subject: [PATCH] add sys comeback sh

---
 extend/config/config.go |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/extend/config/config.go b/extend/config/config.go
index 2ab67ab..48aa484 100644
--- a/extend/config/config.go
+++ b/extend/config/config.go
@@ -29,6 +29,8 @@
 	SudoPassword  string      `mapstructure: "sudoPassword"` //绯荤粺瀵嗙爜
 	SysThresholds []threshold `mapstructure: "sysThresholds"`
 	PTZSpeed      int         `mapstructure: "ptzSpeed"` // 浜戝彴绉诲姩閫熷害
+	PatchPath       string `mapstructure:"patchPath"`//绯荤粺鏇存柊鍖呰矾寰�
+	BakPath         string `mapstructure:"bakPath"`//绯荤粺鏇存柊鍖呰矾寰�
 }
 
 var Server = &server{}
@@ -40,10 +42,7 @@
 }
 
 type esindexlist struct {
-	VideoPersons   index `mapstructure:"videopersons"`
-	DbTables       index `mapstructure:"dbtables"`
-	Dbtablepersons index `mapstructure:"dbtablepersons"`
-	Personaction   index `mapstructure:"personaction"`
+	AiOcean   index `mapstructure:"aiOcean"`
 }
 type index struct {
 	IndexName string `mapstructure:"index"`
@@ -89,7 +88,7 @@
 	viper.AddConfigPath("/opt/vasystem/config/")
 	err = viper.ReadInConfig()
 	if err != nil {
-		log.Fatal("error on parsing configuration file")
+		log.Fatal("error on parsing configuration file",err)
 	}
 	viper.UnmarshalKey("es", EsInfo)
 	viper.UnmarshalKey("server", Server)

--
Gitblit v1.8.0