From 0219898db6cfa452f22cb094c9ea3d66079cc810 Mon Sep 17 00:00:00 2001 From: ljm42 Date: Sat, 18 Jul 2015 21:33:41 -0700 Subject: [PATCH] Update 99_chown_plex_owned_files.sh * Operate one directory higher, on "/config/Library" instead of "/config/Library/Application Support" * Make all files user and group writable (chmod ug+w) so they can be modifed over a network share --- init/99_chown_plex_owned_files.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/init/99_chown_plex_owned_files.sh b/init/99_chown_plex_owned_files.sh index 9d754be..1e3ea8f 100644 --- a/init/99_chown_plex_owned_files.sh +++ b/init/99_chown_plex_owned_files.sh @@ -1,7 +1,8 @@ #!/bin/bash -if [ -d "/config/Library/Application Support" ]; then -find "/config/Library/Application Support" \! -user abc -exec chown -h abc:abc {} \; -find "/config/Library/Application Support" \! -group abc -exec chown -h abc:abc {} \; +if [ -d "/config/Library" ]; then +find "/config/Library" \! -user abc -exec chown -h abc:abc {} \; +find "/config/Library" \! -group abc -exec chown -h abc:abc {} \; +chmod -R ug+w "/config/Library" fi