mirror of https://github.com/midoks/mdserver-web
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
590 B
27 lines
590 B
7 years ago
|
#!/bin/bash
|
||
|
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
|
||
|
export PATH
|
||
|
install_tmp='/tmp/bt_install.pl'
|
||
|
download_Url=http://download.bt.cn
|
||
|
|
||
|
Install_phpguard()
|
||
|
{
|
||
|
mkdir -p /www/server/panel/plugin/phpguard
|
||
|
wget -O /www/server/panel/plugin/phpguard/info.json $download_Url/install/lib/plugin/phpguard/info.json -T 5
|
||
|
echo 'True' > /www/server/panel/data/502Task.pl
|
||
|
}
|
||
|
|
||
|
Uninstall_phpguard()
|
||
|
{
|
||
|
rm -rf /www/server/panel/plugin/phpguard
|
||
|
rm -f /www/server/panel/data/502Task.pl
|
||
|
}
|
||
|
|
||
|
|
||
|
action=$1
|
||
|
if [ "${1}" == 'install' ];then
|
||
|
Install_phpguard
|
||
|
else
|
||
|
Uninstall_phpguard
|
||
|
fi
|