diff --git a/plugins/op_waf/install.sh b/plugins/op_waf/install.sh index d825e7e11..d29ae27b7 100755 --- a/plugins/op_waf/install.sh +++ b/plugins/op_waf/install.sh @@ -15,8 +15,10 @@ Install_of(){ echo '正在安装脚本文件...' > $install_tmp mkdir -p $serverPath/op_waf - mkdir -p $rootPath/wwwlogs/waf + if [ -f $serverPath/openresty ];then + mkdir -p $serverPath/openresty/nginx/conf/waf + fi echo '0.1' > $serverPath/op_waf/version.pl echo 'install ok' > $install_tmp }