Skip to content

Commit ac7bb65

Browse files
authored
use uid instead of id, because there can be multiple ids tied to same uid
1 parent c2f1a2a commit ac7bb65

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

root/etc/cont-init.d/40-chown-files

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ if [ ! -e "/config/Library/Application Support/Plex Media Server/Preferences.xml
88
exit 0
99
fi
1010

11-
if [ ! "$(stat -c %U /config/Library)" = "abc" ]; then
11+
if [ ! "$(stat -c %u /config/Library)" = "$PUID" ]; then
1212
echo "Change in ownership detected, please be patient while we chown existing files"
1313
echo "This could take some time"
1414
chown abc:abc -R \

0 commit comments

Comments
 (0)