Fix startup script

This commit is contained in:
JonnyWong16 2020-07-02 12:33:32 -07:00
commit 0097532f4a
No known key found for this signature in database
GPG key ID: B1F1F9807184697A

View file

@ -1,7 +1,7 @@
#!/usr/bin/env bash
if [[ "$TAUTULLI_DOCKER" = "True" ]]; then
if [[ -v PUID && -v PGID ]]; then
if [[ -n $PUID && -n $PGID ]]; then
getent group "$PGID" 2>&1 > /dev/null || groupadd -g "$PGID" tautulli
getent passwd "$PUID" 2>&1 > /dev/null || useradd -r -u "$PUID" -g "$PGID" tautulli