Update serv00keep.sh

This commit is contained in:
甬哥侃侃侃ygkkk
2025-04-01 11:35:14 +08:00
committed by GitHub
parent a6d4766621
commit cfb558b6a3
+2 -3
View File
@@ -22,7 +22,6 @@ export reym=${reym:-''}
export reset=${reset:-''}
export resport=${resport:-''}
devil binexec on >/dev/null 2>&1
USERNAME=$(whoami | tr '[:upper:]' '[:lower:]')
HOSTNAME=$(hostname)
snb=$(hostname | cut -d. -f1)
@@ -76,8 +75,8 @@ fi
curl -sL https://raw.githubusercontent.com/yonggekkk/sing-box-yg/main/app.js -o "$keep_path"/app.js
sed -i '' "15s/name/$snb/g" "$keep_path"/app.js
sed -i '' "59s/key/$UUID/g" "$keep_path"/app.js
sed -i '' "75s/name/$USERNAME/g" "$keep_path"/app.js
sed -i '' "75s/where/$snb/g" "$keep_path"/app.js
sed -i '' "90s/name/$USERNAME/g" "$keep_path"/app.js
sed -i '' "90s/where/$snb/g" "$keep_path"/app.js
if [[ -z "$reym" ]] && [[ -f "$WORKDIR/reym.txt" ]]; then
reym=$(cat "$WORKDIR/reym.txt" 2>/dev/null)
elif [[ -z "$reym" ]] && [[ ! -f "$WORKDIR/reym.txt" ]]; then