Sophie

Sophie

distrib > Mageia > cauldron > x86_64 > media > core-release > by-pkgid > 28d3701a63f5f8de84dc9c0557ec96c3 > scriptlet

firebird-4.0.4.3010-1.mga10.x86_64.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

PREUN

/bin/sh
/usr/share/rpm-helper/del-service firebird $1 firebird

POSTIN

/bin/sh
/usr/share/rpm-helper/add-service firebird $1 firebird