summaryrefslogtreecommitdiff
path: root/user-init
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2003-03-13 03:52:25 +0000
committerJonas Smedegaard <dr@jones.dk>2003-03-13 03:52:25 +0000
commit39742c443a119530c0ce3a4ebc184c04e61e5d86 (patch)
tree7fc2982e7a48deb09d634147d02905626a55358f /user-init
parentc94d7df1955fc0da1f9a940af35717f3573e42b4 (diff)
Correctly init exceptions.
Diffstat (limited to 'user-init')
-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