elliebot/docker-entrypoint.sh

16 lines
No EOL
307 B
Bash

#!/bin/sh
set -e
data_init="/app/data_init"
data="/app/data"
# Merge data_init into data without overwrites.
cp -R -n "$data_init/." "$data/"
echo "Yt-dlp update"
# TODO: Update yt-dlp. It should not crash the entrypoint if ca-certificates is not installed
# yt-dlp -U
echo "Running EllieBot"
exec "$@"