From 5dab361d8934393048e1546b91a8dfcc85bb8bff Mon Sep 17 00:00:00 2001 From: Adriano dos Santos Fernandes Date: Tue, 16 Aug 2022 21:02:28 -0300 Subject: [PATCH] Fix #7241 - mac installer - firebird user not created correctly if group already exists. Solution by: Jonathan Frutos --- builds/install/arch-specific/darwin/install-script | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/builds/install/arch-specific/darwin/install-script b/builds/install/arch-specific/darwin/install-script index 697c95ba28..f1074c7e8f 100644 --- a/builds/install/arch-specific/darwin/install-script +++ b/builds/install/arch-specific/darwin/install-script @@ -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