summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xuser-init5
1 files changed, 3 insertions, 2 deletions
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