Sophie

Sophie

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

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

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