Update serv00keep.sh
This commit is contained in:
+2
-3
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user