docker-plex-wireguard/init/90_uid_gid_fix.sh
Stian Buch Larsen b30a2249c4 Fix for Not being able to use GID\UID that is already in use
Added -o option to groupmod, to enable the useage of id's that allready
exist in container os. (Fix for unraid)
2015-05-10 12:05:42 +02:00

15 lines
No EOL
380 B
Bash

#!/bin/bash
if [ ! "$(id -u abc)" -eq "$PUID" ]; then usermod -u "$PUID" abc ; fi
if [ ! "$(id -g abc)" -eq "$PGID" ]; then groupmod -o -g "$PGID" abc ; fi
echo "
-----------------------------------
Plex GID/UID
-----------------------------------
Plex uid: $(id -u abc)
Plex gid: $(id -g abc)
-----------------------------------
Plex will now continue to boot.
"
sleep 2