*** empty log message ***

svn path=/trunk/boinc/; revision=10760
This commit is contained in:
Charlie Fenton 2006-07-26 12:47:52 +00:00
parent 15933d5fc3
commit 84c63bec47
1 changed files with 5 additions and 3 deletions

View File

@ -37,7 +37,9 @@
function make_boinc_user() {
# Check whether group already exists
name=$(dscl . search /groups RecordName $1 | cut -f1 -)
if [ "$name" != "$1" ] ; then
if [ "$name" = "$1" ] ; then
gid=$(dscl . read /groups/$1 PrimaryGroupID | cut -d" " -f2 -)
else
# Find an unused group ID
gid="25"
while true; do
@ -53,7 +55,7 @@ function make_boinc_user() {
# Check whether user already exists
name=$(dscl . search /users RecordName $1 | cut -f1 -)
if [ "$name" != "$1" ] ; then
if [ -z "$name" ] ; then
# Is uid=gid available?
uid=$gid