Sophie

Sophie

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

eventum-irc-1.7.1-5.noarch.rpm

POSTIN

/bin/sh
/sbin/chkconfig --add eventum-irc
{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/eventum-irc ] && . /etc/sysconfig/eventum-irc
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/eventum-irc ]; then
/sbin/service eventum-irc restart 1>&2 || :;
else
echo 'Run "/sbin/service eventum-irc start" to start Eventum IRC Bot.'
fi
fi };

Triggers

eventum-irc < 1.6.1-3.14

/bin/sh
sed -i -e '
s,\$irc_host,$irc_server_hostname,
s,\$irc_port,$irc_server_port,
s,\$irc_nick,$nickname,
s,\$irc_realname,$realname,
s,\$irc_username,$username,
s,\$irc_password,$password,
' /etc/eventum/irc.php

eventum-irc < 1.7.0-3.4

/bin/sh
if [ -f /etc/webapps/eventum/irc.php.rpmsave ]; then
	mv -f /etc/eventum/irc.php{,.rpmnew}
	mv -f /etc/webapps/eventum/irc.php.rpmsave /etc/eventum/irc.php
fi