Sophie

Sophie

distrib > Mandriva > 2009.0 > x86_64 > media > contrib-testing > by-pkgid > e77ebb47cf6bd429943a85fa32344197 > scriptlet

firebird-server-common-2.1.3.18185.0-1mdv2009.0.x86_64.rpm

PREIN

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

PREUN

/bin/sh
%_post_userdel firebird
/usr/share/rpm-helper/del-group firebird $1 firebird