From f3cbc0730167b45104a30f7803915f02dbd2b150 Mon Sep 17 00:00:00 2001 From: ouqiang Date: Mon, 1 May 2017 14:12:21 +0800 Subject: [PATCH] =?UTF-8?q?=E7=B3=BB=E7=BB=9F=E5=AE=89=E8=A3=85=E5=90=8E?= =?UTF-8?q?=EF=BC=8C=E6=89=8D=E5=88=9D=E5=A7=8B=E5=8C=96=E8=B5=84=E6=BA=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.sh | 4 ++-- cmd/web.go | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/build.sh b/build.sh index 881425b..c38aa06 100644 --- a/build.sh +++ b/build.sh @@ -86,8 +86,8 @@ done rm -rf $TEMP_DIR/$APP_NAME/conf/* rm -rf $TEMP_DIR/$APP_NAME/log/* rm -rf $TEMP_DIR/$APP_NAME/data/sessions/* -rm -rf $TEMP_DIR/$APP_NAME/data/password/* -rm -rf $TEMP_DIR/$APP_NAME/data/private_key/* +rm -rf $TEMP_DIR/$APP_NAME/data/ssh/password/* +rm -rf $TEMP_DIR/$APP_NAME/data/ssh/private_key/* echo '压缩文件' # 压缩文件 diff --git a/cmd/web.go b/cmd/web.go index db4afeb..36e3ddf 100644 --- a/cmd/web.go +++ b/cmd/web.go @@ -53,6 +53,9 @@ func run(ctx *cli.Context) { } func initModule() { + if !app.Installed { + return + } models.Db = models.CreateDb() // 初始化定时任务