mirror of
https://github.com/linuxserver/docker-plex.git
synced 2026-01-20 19:45:54 +08:00
use uid instead of id, because there can be multiple ids tied to same uid
This commit is contained in:
parent
c2f1a2ab1b
commit
ac7bb65f5f
@ -8,7 +8,7 @@ if [ ! -e "/config/Library/Application Support/Plex Media Server/Preferences.xml
|
||||
exit 0
|
||||
fi
|
||||
|
||||
if [ ! "$(stat -c %U /config/Library)" = "abc" ]; then
|
||||
if [ ! "$(stat -c %u /config/Library)" = "$PUID" ]; then
|
||||
echo "Change in ownership detected, please be patient while we chown existing files"
|
||||
echo "This could take some time"
|
||||
chown abc:abc -R \
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user