From ac7bb65f5f4fdd659eed45ce8662275bd19f8d86 Mon Sep 17 00:00:00 2001 From: aptalca Date: Wed, 14 Dec 2016 00:29:48 -0500 Subject: [PATCH] use uid instead of id, because there can be multiple ids tied to same uid --- root/etc/cont-init.d/40-chown-files | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/root/etc/cont-init.d/40-chown-files b/root/etc/cont-init.d/40-chown-files index b8bb32b..efe7e57 100644 --- a/root/etc/cont-init.d/40-chown-files +++ b/root/etc/cont-init.d/40-chown-files @@ -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 \