|
|
|
@ -7,16 +7,18 @@ rootPath=$(dirname "$curPath") |
|
|
|
|
rootPath=$(dirname "$rootPath") |
|
|
|
|
serverPath=$(dirname "$rootPath") |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
install_tmp=${rootPath}/tmp/mw_install.pl |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
action=$1 |
|
|
|
|
version=$2 |
|
|
|
|
|
|
|
|
|
Install_of(){ |
|
|
|
|
|
|
|
|
|
echo '正在安装脚本文件...' > $install_tmp |
|
|
|
|
mkdir -p $serverPath/op_waf |
|
|
|
|
|
|
|
|
|
echo '0.1' > $serverPath/op_waf/version.pl |
|
|
|
|
echo "${version}" > $serverPath/op_waf/version.pl |
|
|
|
|
echo 'install ok' > $install_tmp |
|
|
|
|
|
|
|
|
|
cd ${rootPath} && python3 ${rootPath}/plugins/op_waf/index.py start |
|
|
|
@ -29,9 +31,6 @@ Uninstall_of(){ |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
action=$1 |
|
|
|
|
type=$2 |
|
|
|
|
|
|
|
|
|
action=$1 |
|
|
|
|
if [ "${1}" == 'install' ];then |
|
|
|
|
Install_of |
|
|
|
|