mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-22 22:43:03 +01:00
Fix #7241 - mac installer - firebird user not created correctly if group already exists.
Solution by: Jonathan Frutos
This commit is contained in:
parent
596aa9fd1f
commit
5dab361d89
@ -23,7 +23,8 @@ FB_RES="$FB_FW/Versions/A/Resources"
|
||||
# Now create the firebird group
|
||||
echo "Create the Firebird group 10.7+"
|
||||
if dscl localhost -read /Local/Default/Groups/firebird 2&>1 /dev/null; then
|
||||
echo "Group Found"
|
||||
gid=$(dscl localhost -read /Local/Default/Groups/firebird PrimaryGroupID | awk '($1 == "PrimaryGroupID:") { print $2 }')
|
||||
echo "Group Found $gid"
|
||||
else
|
||||
gid=501
|
||||
dscl localhost -search /Local/Default/Groups PrimaryGroupID $gid | grep $gid
|
||||
|
Loading…
Reference in New Issue
Block a user