forked from EllieBotDevs/elliebot
20 lines
No EOL
376 B
Bash
20 lines
No EOL
376 B
Bash
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
data_init="/app/data_init"
|
|
data="/app/data"
|
|
|
|
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"
|
|
exec "$@" |