|
|
|
|
@ -10,7 +10,7 @@ export PATH
|
|
|
|
|
# Blog: https://www.p3ter.me
|
|
|
|
|
#=================================================
|
|
|
|
|
|
|
|
|
|
sh_ver="1.0"
|
|
|
|
|
sh_ver="1.1"
|
|
|
|
|
file="/usr/local/ServerStatus"
|
|
|
|
|
web_file="/usr/local/ServerStatus/web"
|
|
|
|
|
server_file="/usr/local/ServerStatus/server"
|
|
|
|
|
@ -79,7 +79,7 @@ Download_Server_Status_client(){
|
|
|
|
|
[[ ! -e ${file} ]] && mkdir "${file}"
|
|
|
|
|
cd "${file}"
|
|
|
|
|
wget -N --no-check-certificate "https://raw.githubusercontent.com/P3terChan/ServerStatus/master/clients/client-psutil.py"
|
|
|
|
|
[[ ! -e "client-linux.py" ]] && echo -e "${Error} ServerStatus 客户端下载失败 !" && exit 1
|
|
|
|
|
[[ ! -e "client-psutil.py" ]] && echo -e "${Error} ServerStatus 客户端下载失败 !" && exit 1
|
|
|
|
|
mv client-psutil.py status-client.py
|
|
|
|
|
[[ ! -e "status-client.py" ]] && echo -e "${Error} ServerStatus 服务端文件夹重命名失败 !" && rm -rf client-psutil.py && exit 1
|
|
|
|
|
}
|
|
|
|
|
|