docker-pyload-ng/root/start.sh
nyyu b932b39de2
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/cron/woodpecker Pipeline was successful
chore: clean
2024-12-31 11:15:19 +01:00

14 lines
294 B
Bash
Executable file

#!/bin/sh
set -e
PUID=${PUID:-911}
PGID=${PGID:-911}
sed -i "s/^\(abc:[^:]*:\)[0-9]*:/\1$PGID:/" /etc/group
sed -i "s/^\(abc:[^:]*:\)[0-9]*:[0-9]*:/\1$PUID:$PGID:/" /etc/passwd
for f in /etc/cont-init.d/*; do
sh "$f"
done
exec su abc -c 'pyload --userdir /config --storagedir /downloads'