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" com.apple.LSSharedFileList.FavoriteServers "smb://istsmb3.ist.local/$USER"
sfltool add-item -n "Home" com.apple.LSSharedFileList.FavoriteServers "smb://istsmb3.ist.local/$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
do
sfltool add-item -n "Group" com.apple.LSSharedFileList.FavoriteServers "smb://istsmb3.ist.local/$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