Nice commited on
Commit
192c770
1 Parent(s): 2c4c19a

Update entrypoint.sh

Browse files
Files changed (1) hide show
  1. entrypoint.sh +6 -6
entrypoint.sh CHANGED
@@ -3,11 +3,11 @@
3
  # 检查环境变量CONFIG是否已设置
4
  if [ -z "$BOT_CONFIG" ]; then
5
  echo "环境变量CONFIG未设置。"
6
- exit 1
 
 
 
 
 
7
  fi
8
 
9
- # 将环境变量CONFIG的值写入bot_config.json文件
10
- echo "$BOT_CONFIG" > /app/coze-discord-proxy/data/config/bot_config.json
11
-
12
- # 执行传递给脚本的命令(例如,启动您的应用程序)
13
- exec "$@"
 
3
  # 检查环境变量CONFIG是否已设置
4
  if [ -z "$BOT_CONFIG" ]; then
5
  echo "环境变量CONFIG未设置。"
6
+ #exit 1
7
+ else
8
+ # 将环境变量CONFIG的值写入bot_config.json文件
9
+ echo "$BOT_CONFIG" > /app/coze-discord-proxy/data/config/bot_config.json
10
+ # 执行传递给脚本的命令(例如,启动您的应用程序)
11
+ exec "$@"
12
  fi
13