2015-05-10 10:50:00 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
2015-06-30 11:48:46 -05:00
|
|
|
if [ "$(id -u abc)" != "$PUID" ]; then usermod -u "$PUID" abc ; fi
|
|
|
|
|
if [ "$(id -g abc)" != "$PGID" ]; then groupmod -o -g "$PGID" abc ; fi
|
2015-07-16 16:34:12 -05:00
|
|
|
chown -R abc:abc /config
|
|
|
|
|
chmod ug+rw /config
|
|
|
|
|
find /config -type d -print0 | xargs -0 chmod ug+rwx
|
2015-05-10 10:50:00 +02:00
|
|
|
|
|
|
|
|
echo "
|
|
|
|
|
-----------------------------------
|
2015-05-10 12:05:42 +02:00
|
|
|
Plex GID/UID
|
2015-05-10 10:50:00 +02:00
|
|
|
-----------------------------------
|
2015-05-10 12:05:42 +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.
|
|
|
|
|
"
|
2015-06-30 11:48:46 -05:00
|
|
|
sleep 2
|