xibalami commited on
Commit
ea2ff26
·
verified ·
1 Parent(s): facddf2

Create start.sh

Browse files
Files changed (1) hide show
  1. start.sh +12 -0
start.sh ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+
3
+ # 检查环境变量 PROXY_URL 是否被设置
4
+ if [ -z "$PROXY_URL" ]; then
5
+ # 如果 PROXY_URL 未设置, 则不使用代理启动
6
+ echo "PROXY_URL not set. Starting without proxy..."
7
+ ./tgsou-go -port 9999
8
+ else
9
+ # 如果 PROXY_URL 已设置, 则使用该代理启动
10
+ echo "PROXY_URL found. Starting with proxy: $PROXY_URL"
11
+ ./tgsou-go -port 9999 -proxy "$PROXY_URL"
12
+ fi