8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-22 23:23:02 +01:00

Fix #7241 - mac installer - firebird user not created correctly if group already exists.

Solution by: Jonathan Frutos
This commit is contained in:
Adriano dos Santos Fernandes 2022-08-16 21:02:28 -03:00
parent 596aa9fd1f
commit 5dab361d89

View File

@ -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