Sophie

Sophie

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

jabber-mu-conference-0.6.0-4.amd64.rpm

PREUN

/bin/sh
if [ "$1" = "0" ]; then
	{
if [ -f /var/lock/subsys/jabber-muc ]; then
/sbin/service jabber-muc stop 1>&2 || :;
fi };	/sbin/chkconfig --del jabber-muc
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/mu-conference.xml
	fi
fi

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