From af8c00fcaa9a24d793e95506bd7e4aa7f91fe437 Mon Sep 17 00:00:00 2001 From: midoks Date: Sat, 11 Dec 2021 22:12:03 +0800 Subject: [PATCH] up --- plugins/op_waf/index.py | 4 ++++ plugins/op_waf/install.sh | 1 + 2 files changed, 5 insertions(+) diff --git a/plugins/op_waf/index.py b/plugins/op_waf/index.py index e98a83a15..4141dfeb3 100755 --- a/plugins/op_waf/index.py +++ b/plugins/op_waf/index.py @@ -805,6 +805,10 @@ def getLogsList(): data = [] path = mw.getLogsDir() + '/waf' + + if not os.path.exists(path): + return mw.returnJson(False, '还未生成!', []) + files = os.listdir(path) for f in files: if f == '.DS_Store': diff --git a/plugins/op_waf/install.sh b/plugins/op_waf/install.sh index e4a6e9a97..d825e7e11 100755 --- a/plugins/op_waf/install.sh +++ b/plugins/op_waf/install.sh @@ -15,6 +15,7 @@ Install_of(){ echo '正在安装脚本文件...' > $install_tmp mkdir -p $serverPath/op_waf + mkdir -p $rootPath/wwwlogs/waf echo '0.1' > $serverPath/op_waf/version.pl echo 'install ok' > $install_tmp