mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-05 20:51: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
|
||||
PUID=${PUID:-911}
|
||||
PGID=${PGID:-911}
|
||||
getent group tautulli 2>&1 > /dev/null || groupadd -g "$PGID" tautulli
|
||||
getent passwd tautulli 2>&1 > /dev/null || useradd -r -u "$PUID" -g tautulli tautulli
|
||||
chown -f -R tautulli:tautulli /config
|
||||
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
|
||||
chown -f -R "$PUID":"$PGID" /config
|
||||
python Tautulli.py --datadir /config
|
||||
else
|
||||
python Tautulli.py &> /dev/null &
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue