mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-06 21:21:15 -07:00
Fix Docker permissions if pre-existing PUID/PGID
This commit is contained in:
parent
c7a3e1e3bf
commit
45f0001da5
1 changed files with 3 additions and 3 deletions
6
start.sh
6
start.sh
|
@ -3,9 +3,9 @@
|
||||||
if [[ "$TAUTULLI_DOCKER" = "True" ]]; then
|
if [[ "$TAUTULLI_DOCKER" = "True" ]]; then
|
||||||
PUID=${PUID:-911}
|
PUID=${PUID:-911}
|
||||||
PGID=${PGID:-911}
|
PGID=${PGID:-911}
|
||||||
getent group tautulli 2>&1 > /dev/null || groupadd -g "$PGID" tautulli
|
getent group "$PGID" 2>&1 > /dev/null || groupadd -g "$PGID" tautulli
|
||||||
getent passwd tautulli 2>&1 > /dev/null || useradd -r -u "$PUID" -g tautulli tautulli
|
getent passwd "$PUID" 2>&1 > /dev/null || useradd -r -u "$PUID" -g "$PGID" tautulli
|
||||||
chown -f -R tautulli:tautulli /config
|
chown -f -R "$PUID":"$PGID" /config
|
||||||
python Tautulli.py --datadir /config
|
python Tautulli.py --datadir /config
|
||||||
else
|
else
|
||||||
python Tautulli.py &> /dev/null &
|
python Tautulli.py &> /dev/null &
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue