#!/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'