Sophie

Sophie

distrib > Mandriva > 2009.1 > x86_64 > by-pkgid > 884f2038782b15da05558ad56b321d89 > scriptlet

firebird-server-common-2.1.2.18118.0-2mdv2009.1.x86_64.rpm

PREIN

/bin/sh
# Create the firebird group if it doesn't exist
grep -q firebird /etc/group || /usr/sbin/groupadd -r firebird || true
grep -q firebird /etc/passwd || /usr/sbin/useradd -d / -g firebird -s /sbin/sh -r firebird || true

# Add gds_db to /etc/services if needed
FileName=/etc/services
newLine="gds_db          3050/tcp  # Firebird SQL Database Remote Protocol"
oldLine=`grep "^gds_db" $FileName`
if [ -z "$oldLine" ]; then
	echo $newLine >> $FileName
fi