Files
Auto_Bangumi/entrypoint.sh
stonebeta e819a77656 perf(entrypoint): narrow chown scope to skip .venv (#1011)
Reduces container startup time on low-spec devices (TrueNAS etc.) by limiting recursive chown to /app/data, /app/config, /home/ab instead of /app.

Closes #969 (related performance).
2026-04-19 12:49:48 +02:00

15 lines
293 B
Bash

#!/bin/bash
# shellcheck shell=bash
umask ${UMASK}
if [ -f /config/bangumi.json ]; then
mv /config/bangumi.json /app/data/bangumi.json
fi
groupmod -o -g "${PGID}" ab
usermod -o -u "${PUID}" ab
chown ab:ab -R /app/data /app/config /home/ab
exec su-exec "${PUID}:${PGID}" python main.py