Sophie

Sophie

distrib > PLD > ac > amd64 > by-pkgid > 4e25ccb9bdfd4471653f6a3c7d8fb4e0 > scriptlet

jabber-aim-transport-0-0.20040131.3.amd64.rpm

PREUN

/bin/sh
if [ "$1" = "0" ]; then
	{
if [ -f /var/lock/subsys/jabber-aimtrans ]; then
/sbin/service jabber-aimtrans stop 1>&2 || :;
fi };	/sbin/chkconfig --del jabber-aimtrans
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 the config file..."
		/bin/sed -i -e "s/>secret</>$SECRET</" /etc/jabber/aimtrans.xml
	fi
fi

/sbin/chkconfig --add jabber-aimtrans
{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/jabber-aimtrans ] && . /etc/sysconfig/jabber-aimtrans
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/jabber-aimtrans ]; then
/sbin/service jabber-aimtrans restart 1>&2 || :;
else
echo 'Run "/sbin/service jabber-aimtrans start" to start Jabber aim transport.'
fi
fi };