docker/sonarr/entrypoint.sh
2023-09-16 23:47:01 +02:00

14 lines
171 B
Bash
Executable File

#!/bin/bash
if [ -n "$PGID" ]; then
groupmod -g "$PGID" app
fi
if [ -n "$PUID" ]; then
usermod -u "$PUID" app
fi
chown -R app:app /config/
exec su app -c "$*"