PREUN
/bin/sh
if [ $1 -eq 0 ]; then
if /sbin/service firebird status >& /dev/null; then
/sbin/service firebird stop
fi
chkconfig --del firebird
fi
/usr/share/rpm-helper/del-service firebird $1 firebird
# -----------------------------------------------------------------------------
# server-common scripts
# -----------------------------------------------------------------------------
POSTIN
/bin/sh
type=superserver
for dir in tools;do
[ -L /usr/lib64/firebird/$dir ] || rm -rf /usr/lib64/firebird/$dir
ln -sf $dir-$type /usr/lib64/firebird/$dir
done
for f in $(ls 1 /usr/lib64/firebird/UDF/$type/);do
cp -f /usr/lib64/firebird/UDF/$type/$f /usr/lib64/firebird/UDF/$f
done
if [ ! -f /etc/gds_hosts.equiv ]; then
echo localhost > /etc/gds_hosts.equiv
fi
/usr/share/rpm-helper/add-service firebird $1 firebird