23.08.03-update

main
jinqilin721 2023-08-03 13:46:39 +08:00
parent 3732e34878
commit b122cb5453
2 changed files with 19 additions and 13 deletions

View File

@ -14,11 +14,6 @@ _BT_REPO_URL=$_REPO_URL'/github/btpanel-v7.7.0/raw/branch/main'
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);
if [ "$1" ];then
nodes=($(echo ${nodes[*]}|sed "s#${1}##"))
fi
tmp_file1=/dev/shm/net_test1.pl
tmp_file2=/dev/shm/net_test2.pl
[ -f "${tmp_file1}" ] && rm -f ${tmp_file1}
@ -115,6 +110,19 @@ send_check(){
NODE_URL=""
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(){
if [ "${PM}" = "yum" ]; then
SYS_VERSION=$(cat /etc/redhat-release)
@ -161,5 +169,3 @@ if [ ! $NODE_URL ];then
get_node_url
bt_check
fi