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