#!/usr/bin/env sh

PUID=${PUID:-6006}
PGID=${PGID:-6006}

groupmod -o -g "$PGID" premiumizer || true
usermod -o -u "$PUID" premiumizer || true

chown -R premiumizer:premiumizer /conf || true

exec su-exec premiumizer "$@"

#!/usr/bin/env sh

PUID=${PUID:-6006}
PGID=${PGID:-6006}

groupmod -o -g "$PGID" premiumizer || true
usermod -o -u "$PUID" premiumizer || true

chown -R premiumizer:premiumizer /conf || true

# Allow write access on downloaded files to group and others
umask 0000

exec su-exec premiumizer "$@"

Allow write access on downloaded files
Allow write access on downloaded files

Using umask 0000 to allow write access on downloaded files to group and others.
See http://widerin.net/blog/change-umask-in-docker-containers/

This should fix #289