Merge pull request #5 from linuxserver/always-set-id

always setting uid and gid rather than test
pull/6/head 25
j0nnymoe 2016-11-16 19:25:00 +00:00 zatwierdzone przez GitHub
commit 55f945bf0a
1 zmienionych plików z 4 dodań i 5 usunięć

Wyświetl plik

@ -1,11 +1,10 @@
#!/usr/bin/with-contenv bash #!/usr/bin/with-contenv bash
PUID=${PUID:-911} PUID=${PUID:-911}
PGID=${PGID:-911} PGID=${PGID:-911}
if [ ! "$(id -u abc)" -eq "$PUID" ]; then usermod -o -u "$PUID" abc ; fi groupmod -o -g "$PGID" abc
if [ ! "$(id -g abc)" -eq "$PGID" ]; then groupmod -o -g "$PGID" abc ; fi usermod -o -u "$PUID" abc
echo " echo "
------------------------------------- -------------------------------------
@ -17,8 +16,8 @@ echo "
|_| |_|
Brought to you by linuxserver.io Brought to you by linuxserver.io
We do accept donations at: We gratefully accept donations at:
https://www.linuxserver.io/donations https://www.linuxserver.io/index.php/donations/
------------------------------------- -------------------------------------
GID/UID GID/UID
------------------------------------- -------------------------------------