From bcca313eee7df68f1c81070c6ce621fce2bd56fb Mon Sep 17 00:00:00 2001 From: Patrick Double Date: Mon, 27 Jul 2015 14:08:05 -0500 Subject: [PATCH] Improve chown startup time --- init/90_uid_gid_fix.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/init/90_uid_gid_fix.sh b/init/90_uid_gid_fix.sh index ee2fb40..e70654f 100644 --- a/init/90_uid_gid_fix.sh +++ b/init/90_uid_gid_fix.sh @@ -2,9 +2,10 @@ if [ "$(id -u abc)" != "$PUID" ]; then usermod -u "$PUID" abc ; fi if [ "$(id -g abc)" != "$PGID" ]; then groupmod -o -g "$PGID" abc ; fi -chown -R abc:abc /config -chmod ug+rw /config -find /config -type d -print0 | xargs -0 chmod ug+rwx +find /config -not \( -user abc -a -group abc \) -exec chown abc:abc {} + +# May not be a good idea to mess with permissions set by Plex +#find /config -type f -a -perm -0660 -exec chmod ug+rw {} + +#find /config -type d -a -perm -0770 -exec chmod ug+rwx {} + echo " -----------------------------------