13 lines
336 B
Bash
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 |