Files
SaveAny-Bot/entrypoint.sh
2026-03-30 18:17:44 +08:00

13 lines
336 B
Bash

#!/bin/sh
if [ -n "$CONFIG_URL" ]; then
echo "[INFO] Downloading config from $CONFIG_URL"
if curl -sSLo /app/config.toml "$CONFIG_URL"; then
echo "[INFO] Configuration downloaded successfully"
else
echo "[ERROR] Failed to download config from $CONFIG_URL"
exit 1
fi
fi
exec /app/saveany-bot