From 39742c443a119530c0ce3a4ebc184c04e61e5d86 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Thu, 13 Mar 2003 03:52:25 +0000 Subject: Correctly init exceptions. --- user-init | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'user-init') diff --git a/user-init b/user-init index 16bff2d..116241f 100755 --- a/user-init +++ b/user-init @@ -171,7 +171,6 @@ for user in $USERS; do find "$HOME" -mindepth 1 -maxdepth 1 -type d -print | egrep "^$HOME/shares\." | (while read thisdir; do sharetype="`basename \"$thisdir\" | awk -F. '{print $2}'`" # Define dir and file exceptions - exceptions="$dirs_group_rw_create/$dirs_group_ro_create/$files_group_ro_update/$dirs_no_access_purge" case "$sharetype" in mac) dirs_group_rw_create='.AppleDB/.AppleDesktop/Temporary Items/TheFindByContentFolder' @@ -185,6 +184,8 @@ for user in $USERS; do continue ;; esac + exceptions="$dirs_group_rw_create/$dirs_group_ro_create/$files_group_ro_update/$dirs_no_access_purge" + exception_dirs_create="$dirs_group_rw_create/$dirs_group_ro_create" chown "$user": "$thisdir" chmod a=rX "$thisdir" find "$thisdir" -mindepth 1 -maxdepth 1 -type d -print | (while read thisdir; do @@ -209,7 +210,7 @@ for user in $USERS; do chmod -R ug=rw,o=r,a+X,g+s "$thisdir" done) # Handle exception dirs to be created if not existing - IFS="/"; for dir in $dirs_group_rw_create/$dirs_group_ro_create; do IFS="$ifs"; + IFS="/"; for dir in $exception_dirs_create; do IFS="$ifs"; if [ ! -d "$thisdir/$dir" ]; then rm -f "$thisdir/$dir" fi -- cgit v1.2.3