You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
docker-plex/init/90_uid_gid_fix.sh

15 lines
382 B

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