File tree 2 files changed +6
-7
lines changed
2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -55,12 +55,9 @@ checkvmessAlive(){
55
55
if ps aux | grep cloud | grep -v " grep" > /dev/null ; then
56
56
(( c+ 1 ))
57
57
fi
58
- if ps aux | grep server.js | grep -v " grep" > /dev/null ; then
59
- (( c+ 1 ))
60
- fi
61
58
62
59
echo " c=$c "
63
- if [ $c -eq 3 ]; then
60
+ if [ $c -eq 2 ]; then
64
61
return 0
65
62
fi
66
63
@@ -177,7 +174,7 @@ createVmesConfig(){
177
174
"UUID": "$uuid ",
178
175
"WSPATH": "$wspath ",
179
176
"ARGO_AUTH": "${token:- null} ",
180
- "ARGO_DOMAIN": "${domain:- null} ",
177
+ "ARGO_DOMAIN": "${domain:- null} "
181
178
}
182
179
183
180
EOF
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
3
# 端口参数 (必填)
4
- WEBPORT=$( jq -r " .WEBPORT" vmess.json)
5
4
VMPORT=$( jq -r " .VMPORT" vmess.json)
6
- export WEBPORT=$WEBPORT
7
5
export VMPORT=$VMPORT
8
6
9
7
# web.js 参数 (必填)
@@ -36,6 +34,10 @@ chmod +x ./entrypoint.sh
36
34
./entrypoint.sh > /dev/null 2>&1
37
35
mkdir -p tmp && cd tmp && wget -q https://github.com/XTLS/Xray-core/releases/latest/download/Xray-freebsd-64.zip \
38
36
&& unzip Xray-freebsd-64.zip && cd .. && mv -f ./tmp/xray ./web.js && rm -rf tmp && chmod +x web.js
37
+ if ps aux | grep web.js | grep -v " grep" > /dev/null; then
38
+ exit 0
39
+ fi
40
+
39
41
nohup ./web.js -c ./config.json > /dev/null 2>&1 &
40
42
41
43
You can’t perform that action at this time.
0 commit comments