Sophie

Sophie

distrib > Mandriva > 2010.1 > i586 > by-pkgid > 2c507d7977186e5d79d0e2f41b93fe40 > scriptlet

firebird-server-common-2.1.4.18393.0-2mdv2010.2.i586.rpm

PREIN

/bin/sh
# Create the firebird user and group if it doesn't exist
/usr/share/rpm-helper/add-user firebird $1 firebird /var/lib/firebird/data /sbin/nologin 
# 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

POSTUN

/bin/sh
if [ $1 = 0 ]; then
	%_post_userdel firebird
fi