Sophie

Sophie

distrib > PLD > ac > amd64 > by-pkgid > f1139779047b67662947d33b1ceb563c > scriptlet

jit-1.1.7-2.amd64.rpm

PREUN

/bin/sh
if [ "$1" = "0" ]; then
	{
if [ -f /var/lock/subsys/jit ]; then
/sbin/service jit stop 1>&2 || :;
fi };	/sbin/chkconfig --del jit
fi

POSTIN

/bin/sh
if [ -f /etc/jabber/secret ] ; then
	SECRET=`cat /etc/jabber/secret`
	if [ -n "$SECRET" ] ; then
		echo "Updating component authentication secret in jit.xml..."
		/bin/sed -i -e "s/>secret</>$SECRET</" /etc/jabber/jit.xml
	fi
fi
/sbin/chkconfig --add jit
{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/jit ] && . /etc/sysconfig/jit
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/jit ]; then
/sbin/service jit restart 1>&2 || :;
else
echo 'Run "/sbin/service jit start" to start Jabber ICQ transport daemon.'
fi
fi };