Sophie

Sophie

distrib > Mandriva > 2009.1 > x86_64 > media > contrib-release > by-pkgid > 948c70f4520bbbfbb2bc4271d53133dd > scriptlet

firebird-server-superserver-2.1.2.18118.0-2mdv2009.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