mirror of https://github.com/BOINC/boinc.git
Mac installer: Utility shell script creates RealName field for users boinc_master and boinc_project and sets it to empty string
svn path=/trunk/boinc/; revision=25371
This commit is contained in:
parent
f088060382
commit
abfdc4deda
|
@ -2408,3 +2408,10 @@ Rom 2 Mar 2012
|
|||
configure.ac
|
||||
version.h
|
||||
|
||||
Charlie 3 Mar 2012
|
||||
- Mac installer: Utility shell script creates RealName field for users
|
||||
boinc_master and boinc_project and sets it to empty string (following
|
||||
recent advice from Apple Developer technical Suport.)
|
||||
|
||||
mac_build/
|
||||
Mac_SA_Secure.sh
|
||||
|
|
|
@ -63,7 +63,9 @@
|
|||
#
|
||||
|
||||
# Updated 1/28/10 for BOINC version 6.8.20, 6.10.30 and 6.11.1
|
||||
# Last updated 10/24/11 for OS 10.7.2 Lion
|
||||
# Updated 10/24/11 for OS 10.7.2 Lion
|
||||
# Last updated 3/3/12 to create RealName key with empty string as value
|
||||
#
|
||||
# WARNING: do not use this script with versions of BOINC older
|
||||
# than 6.8.20 and 6.10.30
|
||||
|
||||
|
@ -111,6 +113,13 @@ function make_boinc_user() {
|
|||
dscl . -create /users/$1 home /var/empty
|
||||
dscl . -create /users/$1 gid $gid
|
||||
fi
|
||||
|
||||
|
||||
## Under OS 10.7 dscl won't directly create RealName key with empty
|
||||
## string as value but will allow changing value to empty string.
|
||||
## -create replaces any previous value of the key if it already exists
|
||||
dscl . -create /users/boinc_master RealName $1
|
||||
dscl . -change /users/boinc_master RealName $1 ""
|
||||
}
|
||||
|
||||
function make_boinc_users() {
|
||||
|
|
Loading…
Reference in New Issue