mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-08-19 21:03:21 -07:00
Only change Docker permissions if PUID/PGID exists
This commit is contained in:
parent
45f0001da5
commit
40fd82febd
1 changed files with 1 additions and 3 deletions
4
start.sh
4
start.sh
|
@ -1,8 +1,6 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
if [[ "$TAUTULLI_DOCKER" = "True" ]]; then
|
if [[ "$TAUTULLI_DOCKER" = "True" && -v PUID && -v PGID ]]; then
|
||||||
PUID=${PUID:-911}
|
|
||||||
PGID=${PGID:-911}
|
|
||||||
getent group "$PGID" 2>&1 > /dev/null || groupadd -g "$PGID" tautulli
|
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
|
getent passwd "$PUID" 2>&1 > /dev/null || useradd -r -u "$PUID" -g "$PGID" tautulli
|
||||||
chown -f -R "$PUID":"$PGID" /config
|
chown -f -R "$PUID":"$PGID" /config
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue