Skip to content
Snippets Groups Projects
Commit fccbe05a authored by sparklyballs's avatar sparklyballs
Browse files

always setting uid and gid rather than test

parent 84a610ce
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/with-contenv bash
PUID=${PUID:-911}
PGID=${PGID:-911}
if [ ! "$(id -u abc)" -eq "$PUID" ]; then usermod -o -u "$PUID" abc ; fi
if [ ! "$(id -g abc)" -eq "$PGID" ]; then groupmod -o -g "$PGID" abc ; fi
groupmod -o -g "$PGID" abc
usermod -o -u "$PUID" abc
echo "
-------------------------------------
......@@ -17,8 +16,8 @@ echo "
|_|
Brought to you by linuxserver.io
We do accept donations at:
https://www.linuxserver.io/donations
We gratefully accept donations at:
https://www.linuxserver.io/index.php/donations/
-------------------------------------
GID/UID
-------------------------------------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment