Spaces:
sfun
/
Runtime error

sfun commited on
Commit
b16a992
1 Parent(s): b718db4

Rename bot_config.json to entrypoint.sh

Browse files
Files changed (2) hide show
  1. bot_config.json +0 -1
  2. entrypoint.sh +13 -0
bot_config.json DELETED
@@ -1 +0,0 @@
1
- BOT_CONFIG
 
 
entrypoint.sh ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/sh
2
+
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 "$@"