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