系统安装后,才初始化资源

pull/21/merge
ouqiang 2017-05-01 14:12:21 +08:00
parent b154d85277
commit f3cbc07301
2 changed files with 5 additions and 2 deletions

View File

@ -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 '压缩文件'
# 压缩文件

View File

@ -53,6 +53,9 @@ func run(ctx *cli.Context) {
}
func initModule() {
if !app.Installed {
return
}
models.Db = models.CreateDb()
// 初始化定时任务