coze2api / entrypoint.sh
sfun's picture
Rename bot_config.json to entrypoint.sh
b16a992 verified
raw
history blame
348 Bytes
#!/bin/sh
# 检查环境变量CONFIG是否已设置
if [ -z "$BOT_CONFIG" ]; then
echo "环境变量CONFIG未设置。"
exit 1
fi
# 将环境变量CONFIG的值写入bot_config.json文件
echo "$BOT_CONFIG" > /app/coze-discord-proxy/data/config/bot_config.json
# 执行传递给脚本的命令(例如,启动您的应用程序)
exec "$@"