diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..5242e84 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,2 @@ +# Shell scripts must keep LF endings – they run inside the Linux container +*.sh text eol=lf diff --git a/entrypoint.sh b/entrypoint.sh index c229a81..5d673d6 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -7,5 +7,9 @@ APP_GID=${APP_GID:-1000} # Fix ownership of mounted volumes so the app user can write to them chown "${APP_UID}:${APP_GID}" /app/tmp /app/data /app/data/images +# Self-update yt-dlp on every container start (Instagram/TikTok break old versions). +# Must not block or fail the boot: network may not be up yet after a Pi reboot. +timeout 60 yt-dlp -U || echo "yt-dlp self-update failed, continuing with installed version" + # Drop from root to app user and run the actual command exec gosu "${APP_UID}:${APP_GID}" "$@"