Skip to content

Commit 5dab361

Browse files
committed
Fix #7241 - mac installer - firebird user not created correctly if group already exists.
Solution by: Jonathan Frutos
1 parent 596aa9f commit 5dab361

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

builds/install/arch-specific/darwin/install-script

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ FB_RES="$FB_FW/Versions/A/Resources"
2323
# Now create the firebird group
2424
echo "Create the Firebird group 10.7+"
2525
if dscl localhost -read /Local/Default/Groups/firebird 2&>1 /dev/null; then
26-
echo "Group Found"
26+
gid=$(dscl localhost -read /Local/Default/Groups/firebird PrimaryGroupID | awk '($1 == "PrimaryGroupID:") { print $2 }')
27+
echo "Group Found $gid"
2728
else
2829
gid=501
2930
dscl localhost -search /Local/Default/Groups PrimaryGroupID $gid | grep $gid

0 commit comments

Comments
 (0)