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