Sophie

Sophie

distrib > PLD > ac > amd64 > by-pkgid > 93c91c1e3110e896b7ce7540eadda612 > scriptlet

jabber-jud-0.4-3.amd64.rpm

PREUN

/bin/sh
if [ "$1" = "0" ]; then
	if [ -r /var/lock/subsys/jabber-jud ]; then
		/etc/rc.d/init.d/jabber-jud stop >&2
	fi
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/jud.xml
	fi
fi

if [ -r /var/lock/subsys/jabber-jud ]; then
	/etc/rc.d/init.d/jabber-jud restart >&2
else
	echo "Run \"/etc/rc.d/init.d/jabber-jud start\" to start Jabber mu-conference service."
fi