Commit 7f9cf680 authored by Peter NORTHUP's avatar Peter NORTHUP

fixed username for favorite servers

parent e9ff781b
......@@ -40,10 +40,10 @@ read -p "Enter your adm username: " admuser
# read -p "Enter the username of the eventual user: " username
# adding home drive to favorite servers (cmd-K in finder)
sfltool add-item -n "Home" "smb://$USER"
sfltool add-item -n "Home" "smb://$username"
# get group-drive names, add to favorite servers
groups=`ldapsearch -LLL -x -h ldap.ista.local -b "ou=group,dc=ist,dc=ac,dc=at" memberUid=$USER cn | egrep "cn\: \w+grp" | cut -d " " -f 2`
groups=`ldapsearch -LLL -x -h ldap.ista.local -b "ou=group,dc=ist,dc=ac,dc=at" memberUid=$username cn | egrep "cn\: \w+grp" | cut -d " " -f 2`
for g in $groups
sfltool add-item -n "Group" "smb://$g"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment