Sophie

Sophie

distrib > Mandriva > 2008.1 > x86_64 > media > contrib-release > by-pkgid > edeb929d22b78cb83aa40d2b696e118c > scriptlet

firebird-server-superserver-2.0.3.12981.0-2mdv2008.1.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
	if [ "$(readlink /usr/lib64/firebird/tools >& /dev/null)" == "/usr/lib64/firebird/tools-superserver" ]; then
		rm -f /usr/lib64/firebird/tools
	fi
fi

# -----------------------------------------------------------------------------
# server-common scripts
# -----------------------------------------------------------------------------

POSTIN

/bin/sh
if test ! -e /usr/lib64/firebird/tools; then
	ln -s /usr/lib64/firebird/tools{-superserver,}
fi
if [ $1 -eq 2 ]; then
	if /sbin/service firebird status >& /dev/null; then
		/sbin/service firebird restart
	fi
fi
if [ $1 -eq 1 ]; then
	chkconfig firebird off
fi
if [ ! -f /etc/gds_hosts.equiv ]; then
	echo localhost > /etc/gds_hosts.equiv
fi