docker-pyload-ng/root/start.sh

15 lines
294 B
Bash
Raw Normal View History

2024-01-06 22:12:55 +01:00
#!/bin/sh
set -e
PUID=${PUID:-911}
PGID=${PGID:-911}
2024-12-31 11:11:42 +01:00
sed -i "s/^\(abc:[^:]*:\)[0-9]*:/\1$PGID:/" /etc/group
sed -i "s/^\(abc:[^:]*:\)[0-9]*:[0-9]*:/\1$PUID:$PGID:/" /etc/passwd
2024-01-06 22:12:55 +01:00
for f in /etc/cont-init.d/*; do
sh "$f"
done
2024-04-30 20:53:02 +02:00
exec su abc -c 'pyload --userdir /config --storagedir /downloads'