Files
arte-dl/entrypoint.sh
dev 0866a875ba
Docker / docker (push) Successful in 2m58s
feat: TMDB year fallback + PUID/PGID support
- tmdb.py: store release_date year in cache, expose as tmdb_year
- main.py + app.js: use tmdb_year when subtitle has no year
- Dockerfile: add gosu + abc user for PUID/PGID runtime privilege drop
- entrypoint.sh: new entrypoint handling PUID/PGID ownership of /app/data

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-05 18:02:18 +02:00

16 lines
328 B
Bash

#!/bin/sh
set -e
PUID=${PUID:-0}
PGID=${PGID:-0}
if [ "$PUID" != "0" ] || [ "$PGID" != "0" ]; then
groupmod -o -g "$PGID" abc 2>/dev/null || true
usermod -o -u "$PUID" abc 2>/dev/null || true
mkdir -p /app/data
chown -R "$PUID:$PGID" /app/data 2>/dev/null || true
exec gosu abc "$@"
else
exec "$@"
fi