docker-plex-wireguard/init/90_uid_gid_fix.sh

15 lines
380 B
Bash
Raw Normal View History

2015-05-10 10:50:00 +02:00
#!/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
2015-05-10 10:50:00 +02:00
echo "
-----------------------------------
Plex GID/UID
2015-05-10 10:50:00 +02:00
-----------------------------------
Plex uid: $(id -u abc)
Plex gid: $(id -g abc)
2015-05-10 10:50:00 +02:00
-----------------------------------
Plex will now continue to boot.
"
sleep 2