mirror of
https://github.com/linuxserver/docker-plex.git
synced 2026-04-13 00:04:33 +08:00
Handle case of EUID or EGID not set
This commit is contained in:
parent
e000e5bd94
commit
f07f9d553f
@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ "$(id -u abc)" != "$PUID" ]; then usermod -o -u "$PUID" abc ; fi
|
||||
if [ "$(id -g abc)" != "$PGID" ]; then groupmod -o -g "$PGID" abc ; fi
|
||||
if [ -n "$PUID" -a "$(id -u abc)" != "$PUID" ]; then usermod -o -u "$PUID" abc ; fi
|
||||
if [ -n "$PGID" -a "$(id -g abc)" != "$PGID" ]; then groupmod -o -g "$PGID" abc ; fi
|
||||
|
||||
echo "
|
||||
-----------------------------------
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user