Files
Auto_Bangumi/entrypoint.sh

15 lines
277 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 /home/ab
exec su-exec "${PUID}:${PGID}" python3 main.py