elliebot/docker-entrypoint.sh

20 lines
376 B
Bash
Raw Normal View History

2024-06-18 23:48:54 +12:00
#!/bin/sh
set -e
2024-06-18 23:48:54 +12:00
data_init="/app/data_init"
data="/app/data"
2024-06-18 23:48:54 +12:00
ls $data
# Merge data_init into data without overwrites.
cp -R -n $data_init/* $data
cp -n "$data_init/creds_example.yml" "$data/creds.yml"
ls $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"
2025-02-11 14:07:50 +13:00
exec "$@"