mirror of
https://github.com/EstrellaXD/Auto_Bangumi.git
synced 2026-05-09 07:02:11 +08:00
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).
15 lines
293 B
Bash
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 |