Skip to content

Commit

Permalink
Update serv00keep.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
yonggekkk authored Dec 21, 2024
1 parent fa81d61 commit 0e97d56
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions serv00keep.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ ps aux | grep $(whoami) | grep -v "sshd\|bash\|grep" | awk '{print $2}' | xargs

read_ip(){
nb=$(echo "$HOSTNAME" | cut -d '.' -f 1 | tr -d 's')
ym=("cache$nb.serv00.com" "$HOSTNAME" "web$nb.serv00.com")
ym=("$HOSTNAME" "cache$nb.serv00.com" "web$nb.serv00.com")
rm -rf $WORKDIR/ip.txt
for ym in "${ym[@]}"; do
# 引用frankiejun API
Expand Down Expand Up @@ -301,7 +301,7 @@ echo -e "\e[1;32mArgo域名:\e[1;35m${argodomain}\e[0m\n"
if [ -z ${argodomain} ]; then
red "Argo域名生成失败,当前Argo节点不可用"
fi
ISP=$(curl -s --max-time 2 https://speed.cloudflare.com/meta | awk -F\" '{print $26}' | sed -e 's/ /_/g' || echo "0")
ISP=$(curl -s --max-time 5 https://speed.cloudflare.com/meta | awk -F\" '{print $26}' | sed -e 's/ /_/g' || echo "0")
get_name() { if [ "$HOSTNAME" = "s1.ct8.pl" ]; then SERVER="CT8"; else SERVER=$(echo "$HOSTNAME" | cut -d '.' -f 1); fi; echo "$SERVER"; }
NAME="$ISP-$(get_name)"
rm -rf jh.txt
Expand Down

0 comments on commit 0e97d56

Please sign in to comment.