Sophie

Sophie

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

eventum-1.7.1-5.noarch.rpm

PREIN

/bin/sh
/usr/lib/rpm/user_group.sh user addtogroup http eventum

PREUN

/bin/sh
if [ "$1" = "0" ]; then
	# nuke cache
	rm -f /var/cache/eventum/*.php 2>/dev/null || :
fi

POSTIN

/bin/sh
# check if the package is configured.
if grep -q 'header("Location: setup/")' /etc/webapps/eventum/config.php; then
if [ -f /usr/share/eventum/htdocs/setup/index.php ]; then

RPM_SCRIPTVERBOSITY=5 
[ -r /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm 
if [ -x /usr/bin/banner.sh ]; then 
	CMD="/usr/bin/banner.sh --stderr $([ $RPM_SCRIPTVERBOSITY -ge 5 ] && echo -s) -m eventum" 
else 
	CMD="cat >&2" 
fi 
eval $CMD <<EOF 

You haven't yet configured Eventum!
Please open in browser <http://localhost/eventum/>
If you need access from elsewhere, you need to edit
/etc/webapps/eventum/apache.conf and restart apache.

IMPORTANT: When You have configured Eventum, please uninstall the
setup package, so that eventum-setup is able to secure your Eventum
installation.

EOF
#' vim syntax hack
else

RPM_SCRIPTVERBOSITY=5 
[ -r /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm 
if [ -x /usr/bin/banner.sh ]; then 
	CMD="/usr/bin/banner.sh --stderr $([ $RPM_SCRIPTVERBOSITY -ge 5 ] && echo -s) -m eventum" 
else 
	CMD="cat >&2" 
fi 
eval $CMD <<EOF 

You haven't yet configured Eventum!

To setup eventum, please install eventum-setup and open in browser
<http://localhost/eventum/>.
If you need access from elsewhere, you need to edit
/etc/webapps/eventum/apache.conf and restart apache.

IMPORTANT: When You have configured Eventum, please uninstall the
setup package, so that eventum-setup is able to secure your Eventum
installation.

EOF
#' vim syntax hack
fi

elif grep -q 'DEFAULTPRIVATEKEY' /etc/webapps/eventum/private_key.php; then

RPM_SCRIPTVERBOSITY=5 
[ -r /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm 
if [ -x /usr/bin/banner.sh ]; then 
	CMD="/usr/bin/banner.sh --stderr $([ $RPM_SCRIPTVERBOSITY -ge 5 ] && echo -s) -m eventum" 
else 
	CMD="cat >&2" 
fi 
eval $CMD <<EOF 

You have default private key installed!

Install eventum-setup and open up http://yourserver/eventum/setup/
-- that will help you setup initial config.

when have configured Eventum, please uninstall the setup package,
so that eventum-setup is able to secure your Eventum installation.

EOF
	elif [ -d /usr/share/eventum/setup ]; then

RPM_SCRIPTVERBOSITY=5 
[ -r /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm 
if [ -x /usr/bin/banner.sh ]; then 
	CMD="/usr/bin/banner.sh --stderr $([ $RPM_SCRIPTVERBOSITY -ge 5 ] && echo -s) -m eventum" 
else 
	CMD="cat >&2" 
fi 
eval $CMD <<EOF 

If you have have configured Eventum, please uninstall the setup package,
so that eventum-setup is able to secure your Eventum installation.

EOF
fi

# nuke Smarty templates cache after upgrade
rm -f /var/cache/eventum/*.php

Triggers

apache1 < 1.3.37-3

/bin/sh
 
if [ "$1" = "1" ] && [ "$2" = "1" ]; then
	/usr/sbin/webapp register apache eventum
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/apache/webapps.d/eventum.conf ] && [ "$2" -lt "2" ]; then
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/apache ] && . /etc/sysconfig/apache
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/apache ]; then
/sbin/service apache reload 1>&2 || :;
fi
fi };
fi

apache1-base

/bin/sh
 
# remove link if either of the packages are gone 
if [ -n "" ] || [ "$1" = "0" ] || [ "$2" = "0" ] && [ -L /etc/apache/webapps.d/eventum.conf ]; then 
	/usr/sbin/webapp unregister apache eventum
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/apache ] && . /etc/sysconfig/apache
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/apache ]; then
/sbin/service apache reload 1>&2 || :;
fi
fi };
fi

apache1 < 1.3.37-3

/bin/sh
 
if [ "$1" = "1" ] && [ "$2" = "1" ]; then
	/usr/sbin/webapp register httpd eventum
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/httpd/webapps.d/eventum.conf ] && [ "$2" -lt "2" ]; then
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd reload 1>&2 || :;
fi
fi };
fi

apache1-base

/bin/sh
 
# remove link if either of the packages are gone 
if [ -n "" ] || [ "$1" = "0" ] || [ "$2" = "0" ] && [ -L /etc/httpd/webapps.d/eventum.conf ]; then 
	/usr/sbin/webapp unregister httpd eventum
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd reload 1>&2 || :;
fi
fi };
fi 

# FIXME
# only one upgrade trigger is called if you're upgrading over two
# versions, say 1.5 to 1.5.3, only 1.5.3 trigger is called.
# use common trigger (the highest version and rpmvercmp from poldek?)

apache < 2.2.0

/bin/sh
/usr/share/eventum/upgrade/upgrade.sh /usr/share/eventum/upgrade/v1.5_to_v1.5.1 <





apache-base

/bin/sh
/usr/share/eventum/upgrade/upgrade.sh /usr/share/eventum/upgrade/v1.5.1_to_v1.5.2 <





apache < 2.2.0

/bin/sh
/usr/share/eventum/upgrade/upgrade.sh /usr/share/eventum/upgrade/v1.5.2_to_v1.5.3 <





apache-base

/bin/sh
/usr/share/eventum/upgrade/upgrade.sh /usr/share/eventum/upgrade/v1.5.3_to_v1.5.4 <





eventum < 1.5.1-0.257

/bin/sh
/usr/share/eventum/upgrade/upgrade.sh /usr/share/eventum/upgrade/v1.5.5_to_v1.6.0 <





eventum < 1.5.2-0.289

/bin/sh
/usr/share/eventum/upgrade/upgrade.sh /usr/share/eventum/upgrade/v1.6.0_to_v1.6.1 <





eventum < 1.5.3-0.291

/bin/sh
# migrate from apache-config macros
if [ -f /etc/eventum/apache.conf.rpmsave ]; then
	if [ -d /etc/apache/webapps.d ]; then
		cp -f /etc/webapps/eventum/apache.conf{,.rpmnew}
		cp -f /etc/eventum/apache.conf.rpmsave /etc/webapps/eventum/apache.conf
	fi

	if [ -d /etc/httpd/webapps.d ]; then
		cp -f /etc/webapps/eventum/httpd.conf{,.rpmnew}
		cp -f /etc/eventum/apache.conf.rpmsave /etc/webapps/eventum/httpd.conf
	fi
fi

if [ -L /etc/apache/conf.d/99_eventum.conf ]; then
	/usr/sbin/webapp register apache eventum
	rm -f /etc/apache/conf.d/99_eventum.conf
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/apache ] && . /etc/sysconfig/apache
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/apache ]; then
/sbin/service apache reload 1>&2 || :;
fi
fi };fi
if [ -L /etc/httpd/httpd.conf/99_eventum.conf ]; then
	/usr/sbin/webapp register httpd eventum
	rm -f /etc/httpd/httpd.conf/99_eventum.conf
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd reload 1>&2 || :;
fi
fi };fi

/usr/share/eventum/upgrade/upgrade.sh /usr/share/eventum/upgrade/v1.6.1_to_v1.7.0 <





eventum < 1.5.4-1.12

/bin/sh
 
if [ "$1" = "1" ] && [ "$2" = "1" ]; then
	/usr/sbin/webapp register apache eventum
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/apache/webapps.d/eventum.conf ] && [ "$2" -lt "2" ]; then
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/apache ] && . /etc/sysconfig/apache
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/apache ]; then
/sbin/service apache reload 1>&2 || :;
fi
fi };
fi

eventum < 1.6.0-RC2.6

/bin/sh
 
# remove link if either of the packages are gone 
if [ -n "" ] || [ "$1" = "0" ] || [ "$2" = "0" ] && [ -L /etc/apache/webapps.d/eventum.conf ]; then 
	/usr/sbin/webapp unregister apache eventum
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/apache ] && . /etc/sysconfig/apache
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/apache ]; then
/sbin/service apache reload 1>&2 || :;
fi
fi };
fi

eventum < 1.6.1-0.2

/bin/sh
 
if [ "$1" = "1" ] && [ "$2" = "1" ]; then
	/usr/sbin/webapp register httpd eventum
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/httpd/webapps.d/eventum.conf ] && [ "$2" -lt "2" ]; then
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd reload 1>&2 || :;
fi
fi };
fi

eventum < 1.7.0-2.0.48

/bin/sh
 
# remove link if either of the packages are gone 
if [ -n "" ] || [ "$1" = "0" ] || [ "$2" = "0" ] && [ -L /etc/httpd/webapps.d/eventum.conf ]; then 
	/usr/sbin/webapp unregister httpd eventum
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd reload 1>&2 || :;
fi
fi };
fi 

# FIXME
# only one upgrade trigger is called if you're upgrading over two
# versions, say 1.5 to 1.5.3, only 1.5.3 trigger is called.
# use common trigger (the highest version and rpmvercmp from poldek?)

apache1 < 1.3.37-3

/bin/sh
/usr/share/eventum/upgrade/upgrade.sh /usr/share/eventum/upgrade/v1.5_to_v1.5.1 <





apache1-base

/bin/sh
/usr/share/eventum/upgrade/upgrade.sh /usr/share/eventum/upgrade/v1.5.1_to_v1.5.2 <





apache1 < 1.3.37-3

/bin/sh
/usr/share/eventum/upgrade/upgrade.sh /usr/share/eventum/upgrade/v1.5.2_to_v1.5.3 <





apache1-base

/bin/sh
/usr/share/eventum/upgrade/upgrade.sh /usr/share/eventum/upgrade/v1.5.3_to_v1.5.4 <





apache < 2.2.0

/bin/sh
/usr/share/eventum/upgrade/upgrade.sh /usr/share/eventum/upgrade/v1.5.5_to_v1.6.0 <





apache-base

/bin/sh
/usr/share/eventum/upgrade/upgrade.sh /usr/share/eventum/upgrade/v1.6.0_to_v1.6.1 <





apache < 2.2.0

/bin/sh
# migrate from apache-config macros
if [ -f /etc/eventum/apache.conf.rpmsave ]; then
	if [ -d /etc/apache/webapps.d ]; then
		cp -f /etc/webapps/eventum/apache.conf{,.rpmnew}
		cp -f /etc/eventum/apache.conf.rpmsave /etc/webapps/eventum/apache.conf
	fi

	if [ -d /etc/httpd/webapps.d ]; then
		cp -f /etc/webapps/eventum/httpd.conf{,.rpmnew}
		cp -f /etc/eventum/apache.conf.rpmsave /etc/webapps/eventum/httpd.conf
	fi
fi

if [ -L /etc/apache/conf.d/99_eventum.conf ]; then
	/usr/sbin/webapp register apache eventum
	rm -f /etc/apache/conf.d/99_eventum.conf
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/apache ] && . /etc/sysconfig/apache
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/apache ]; then
/sbin/service apache reload 1>&2 || :;
fi
fi };fi
if [ -L /etc/httpd/httpd.conf/99_eventum.conf ]; then
	/usr/sbin/webapp register httpd eventum
	rm -f /etc/httpd/httpd.conf/99_eventum.conf
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd reload 1>&2 || :;
fi
fi };fi

/usr/share/eventum/upgrade/upgrade.sh /usr/share/eventum/upgrade/v1.6.1_to_v1.7.0 <





apache-base

/bin/sh
 
if [ "$1" = "1" ] && [ "$2" = "1" ]; then
	/usr/sbin/webapp register apache eventum
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/apache/webapps.d/eventum.conf ] && [ "$2" -lt "2" ]; then
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/apache ] && . /etc/sysconfig/apache
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/apache ]; then
/sbin/service apache reload 1>&2 || :;
fi
fi };
fi

eventum < 1.5.1-0.257

/bin/sh
 
# remove link if either of the packages are gone 
if [ -n "" ] || [ "$1" = "0" ] || [ "$2" = "0" ] && [ -L /etc/apache/webapps.d/eventum.conf ]; then 
	/usr/sbin/webapp unregister apache eventum
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/apache ] && . /etc/sysconfig/apache
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/apache ]; then
/sbin/service apache reload 1>&2 || :;
fi
fi };
fi

eventum < 1.5.2-0.289

/bin/sh
 
if [ "$1" = "1" ] && [ "$2" = "1" ]; then
	/usr/sbin/webapp register httpd eventum
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/httpd/webapps.d/eventum.conf ] && [ "$2" -lt "2" ]; then
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd reload 1>&2 || :;
fi
fi };
fi

eventum < 1.5.3-0.291

/bin/sh
 
# remove link if either of the packages are gone 
if [ -n "" ] || [ "$1" = "0" ] || [ "$2" = "0" ] && [ -L /etc/httpd/webapps.d/eventum.conf ]; then 
	/usr/sbin/webapp unregister httpd eventum
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd reload 1>&2 || :;
fi
fi };
fi 

# FIXME
# only one upgrade trigger is called if you're upgrading over two
# versions, say 1.5 to 1.5.3, only 1.5.3 trigger is called.
# use common trigger (the highest version and rpmvercmp from poldek?)

eventum < 1.5.4-1.12

/bin/sh
/usr/share/eventum/upgrade/upgrade.sh /usr/share/eventum/upgrade/v1.5_to_v1.5.1 <





eventum < 1.6.0-RC2.6

/bin/sh
/usr/share/eventum/upgrade/upgrade.sh /usr/share/eventum/upgrade/v1.5.1_to_v1.5.2 <





eventum < 1.6.1-0.2

/bin/sh
/usr/share/eventum/upgrade/upgrade.sh /usr/share/eventum/upgrade/v1.5.2_to_v1.5.3 <





eventum < 1.7.0-2.0.48

/bin/sh
/usr/share/eventum/upgrade/upgrade.sh /usr/share/eventum/upgrade/v1.5.3_to_v1.5.4 <





apache1 < 1.3.37-3

/bin/sh
/usr/share/eventum/upgrade/upgrade.sh /usr/share/eventum/upgrade/v1.5.5_to_v1.6.0 <





apache1-base

/bin/sh
/usr/share/eventum/upgrade/upgrade.sh /usr/share/eventum/upgrade/v1.6.0_to_v1.6.1 <





apache1 < 1.3.37-3

/bin/sh
# migrate from apache-config macros
if [ -f /etc/eventum/apache.conf.rpmsave ]; then
	if [ -d /etc/apache/webapps.d ]; then
		cp -f /etc/webapps/eventum/apache.conf{,.rpmnew}
		cp -f /etc/eventum/apache.conf.rpmsave /etc/webapps/eventum/apache.conf
	fi

	if [ -d /etc/httpd/webapps.d ]; then
		cp -f /etc/webapps/eventum/httpd.conf{,.rpmnew}
		cp -f /etc/eventum/apache.conf.rpmsave /etc/webapps/eventum/httpd.conf
	fi
fi

if [ -L /etc/apache/conf.d/99_eventum.conf ]; then
	/usr/sbin/webapp register apache eventum
	rm -f /etc/apache/conf.d/99_eventum.conf
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/apache ] && . /etc/sysconfig/apache
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/apache ]; then
/sbin/service apache reload 1>&2 || :;
fi
fi };fi
if [ -L /etc/httpd/httpd.conf/99_eventum.conf ]; then
	/usr/sbin/webapp register httpd eventum
	rm -f /etc/httpd/httpd.conf/99_eventum.conf
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd reload 1>&2 || :;
fi
fi };fi

/usr/share/eventum/upgrade/upgrade.sh /usr/share/eventum/upgrade/v1.6.1_to_v1.7.0 <





apache1-base

/bin/sh
 
if [ "$1" = "1" ] && [ "$2" = "1" ]; then
	/usr/sbin/webapp register apache eventum
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/apache/webapps.d/eventum.conf ] && [ "$2" -lt "2" ]; then
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/apache ] && . /etc/sysconfig/apache
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/apache ]; then
/sbin/service apache reload 1>&2 || :;
fi
fi };
fi

apache < 2.2.0

/bin/sh
 
# remove link if either of the packages are gone 
if [ -n "" ] || [ "$1" = "0" ] || [ "$2" = "0" ] && [ -L /etc/apache/webapps.d/eventum.conf ]; then 
	/usr/sbin/webapp unregister apache eventum
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/apache ] && . /etc/sysconfig/apache
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/apache ]; then
/sbin/service apache reload 1>&2 || :;
fi
fi };
fi

apache-base

/bin/sh
 
if [ "$1" = "1" ] && [ "$2" = "1" ]; then
	/usr/sbin/webapp register httpd eventum
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/httpd/webapps.d/eventum.conf ] && [ "$2" -lt "2" ]; then
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd reload 1>&2 || :;
fi
fi };
fi

apache < 2.2.0

/bin/sh
 
# remove link if either of the packages are gone 
if [ -n "" ] || [ "$1" = "0" ] || [ "$2" = "0" ] && [ -L /etc/httpd/webapps.d/eventum.conf ]; then 
	/usr/sbin/webapp unregister httpd eventum
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd reload 1>&2 || :;
fi
fi };
fi 

# FIXME
# only one upgrade trigger is called if you're upgrading over two
# versions, say 1.5 to 1.5.3, only 1.5.3 trigger is called.
# use common trigger (the highest version and rpmvercmp from poldek?)

apache-base

/bin/sh
/usr/share/eventum/upgrade/upgrade.sh /usr/share/eventum/upgrade/v1.5_to_v1.5.1 <





eventum < 1.5.1-0.257

/bin/sh
/usr/share/eventum/upgrade/upgrade.sh /usr/share/eventum/upgrade/v1.5.1_to_v1.5.2 <





eventum < 1.5.2-0.289

/bin/sh
/usr/share/eventum/upgrade/upgrade.sh /usr/share/eventum/upgrade/v1.5.2_to_v1.5.3 <





eventum < 1.5.3-0.291

/bin/sh
/usr/share/eventum/upgrade/upgrade.sh /usr/share/eventum/upgrade/v1.5.3_to_v1.5.4 <





eventum < 1.5.4-1.12

/bin/sh
/usr/share/eventum/upgrade/upgrade.sh /usr/share/eventum/upgrade/v1.5.5_to_v1.6.0 <





eventum < 1.6.0-RC2.6

/bin/sh
/usr/share/eventum/upgrade/upgrade.sh /usr/share/eventum/upgrade/v1.6.0_to_v1.6.1 <





eventum < 1.6.1-0.2

/bin/sh
# migrate from apache-config macros
if [ -f /etc/eventum/apache.conf.rpmsave ]; then
	if [ -d /etc/apache/webapps.d ]; then
		cp -f /etc/webapps/eventum/apache.conf{,.rpmnew}
		cp -f /etc/eventum/apache.conf.rpmsave /etc/webapps/eventum/apache.conf
	fi

	if [ -d /etc/httpd/webapps.d ]; then
		cp -f /etc/webapps/eventum/httpd.conf{,.rpmnew}
		cp -f /etc/eventum/apache.conf.rpmsave /etc/webapps/eventum/httpd.conf
	fi
fi

if [ -L /etc/apache/conf.d/99_eventum.conf ]; then
	/usr/sbin/webapp register apache eventum
	rm -f /etc/apache/conf.d/99_eventum.conf
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/apache ] && . /etc/sysconfig/apache
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/apache ]; then
/sbin/service apache reload 1>&2 || :;
fi
fi };fi
if [ -L /etc/httpd/httpd.conf/99_eventum.conf ]; then
	/usr/sbin/webapp register httpd eventum
	rm -f /etc/httpd/httpd.conf/99_eventum.conf
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd reload 1>&2 || :;
fi
fi };fi

/usr/share/eventum/upgrade/upgrade.sh /usr/share/eventum/upgrade/v1.6.1_to_v1.7.0 <





eventum < 1.7.0-2.0.48

/bin/sh
 
if [ "$1" = "1" ] && [ "$2" = "1" ]; then
	/usr/sbin/webapp register apache eventum
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/apache/webapps.d/eventum.conf ] && [ "$2" -lt "2" ]; then
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/apache ] && . /etc/sysconfig/apache
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/apache ]; then
/sbin/service apache reload 1>&2 || :;
fi
fi };
fi

apache1 < 1.3.37-3

/bin/sh
 
# remove link if either of the packages are gone 
if [ -n "" ] || [ "$1" = "0" ] || [ "$2" = "0" ] && [ -L /etc/apache/webapps.d/eventum.conf ]; then 
	/usr/sbin/webapp unregister apache eventum
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/apache ] && . /etc/sysconfig/apache
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/apache ]; then
/sbin/service apache reload 1>&2 || :;
fi
fi };
fi

apache1-base

/bin/sh
 
if [ "$1" = "1" ] && [ "$2" = "1" ]; then
	/usr/sbin/webapp register httpd eventum
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/httpd/webapps.d/eventum.conf ] && [ "$2" -lt "2" ]; then
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd reload 1>&2 || :;
fi
fi };
fi

apache1 < 1.3.37-3

/bin/sh
 
# remove link if either of the packages are gone 
if [ -n "" ] || [ "$1" = "0" ] || [ "$2" = "0" ] && [ -L /etc/httpd/webapps.d/eventum.conf ]; then 
	/usr/sbin/webapp unregister httpd eventum
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd reload 1>&2 || :;
fi
fi };
fi 

# FIXME
# only one upgrade trigger is called if you're upgrading over two
# versions, say 1.5 to 1.5.3, only 1.5.3 trigger is called.
# use common trigger (the highest version and rpmvercmp from poldek?)

apache1-base

/bin/sh
/usr/share/eventum/upgrade/upgrade.sh /usr/share/eventum/upgrade/v1.5_to_v1.5.1 <





apache < 2.2.0

/bin/sh
/usr/share/eventum/upgrade/upgrade.sh /usr/share/eventum/upgrade/v1.5.1_to_v1.5.2 <





apache-base

/bin/sh
/usr/share/eventum/upgrade/upgrade.sh /usr/share/eventum/upgrade/v1.5.2_to_v1.5.3 <





apache < 2.2.0

/bin/sh
/usr/share/eventum/upgrade/upgrade.sh /usr/share/eventum/upgrade/v1.5.3_to_v1.5.4 <





apache-base

/bin/sh
/usr/share/eventum/upgrade/upgrade.sh /usr/share/eventum/upgrade/v1.5.5_to_v1.6.0 <





eventum < 1.5.1-0.257

/bin/sh
/usr/share/eventum/upgrade/upgrade.sh /usr/share/eventum/upgrade/v1.6.0_to_v1.6.1 <





eventum < 1.5.2-0.289

/bin/sh
# migrate from apache-config macros
if [ -f /etc/eventum/apache.conf.rpmsave ]; then
	if [ -d /etc/apache/webapps.d ]; then
		cp -f /etc/webapps/eventum/apache.conf{,.rpmnew}
		cp -f /etc/eventum/apache.conf.rpmsave /etc/webapps/eventum/apache.conf
	fi

	if [ -d /etc/httpd/webapps.d ]; then
		cp -f /etc/webapps/eventum/httpd.conf{,.rpmnew}
		cp -f /etc/eventum/apache.conf.rpmsave /etc/webapps/eventum/httpd.conf
	fi
fi

if [ -L /etc/apache/conf.d/99_eventum.conf ]; then
	/usr/sbin/webapp register apache eventum
	rm -f /etc/apache/conf.d/99_eventum.conf
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/apache ] && . /etc/sysconfig/apache
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/apache ]; then
/sbin/service apache reload 1>&2 || :;
fi
fi };fi
if [ -L /etc/httpd/httpd.conf/99_eventum.conf ]; then
	/usr/sbin/webapp register httpd eventum
	rm -f /etc/httpd/httpd.conf/99_eventum.conf
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd reload 1>&2 || :;
fi
fi };fi

/usr/share/eventum/upgrade/upgrade.sh /usr/share/eventum/upgrade/v1.6.1_to_v1.7.0 <





eventum < 1.5.3-0.291

/bin/sh
 
if [ "$1" = "1" ] && [ "$2" = "1" ]; then
	/usr/sbin/webapp register apache eventum
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/apache/webapps.d/eventum.conf ] && [ "$2" -lt "2" ]; then
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/apache ] && . /etc/sysconfig/apache
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/apache ]; then
/sbin/service apache reload 1>&2 || :;
fi
fi };
fi

eventum < 1.5.4-1.12

/bin/sh
 
# remove link if either of the packages are gone 
if [ -n "" ] || [ "$1" = "0" ] || [ "$2" = "0" ] && [ -L /etc/apache/webapps.d/eventum.conf ]; then 
	/usr/sbin/webapp unregister apache eventum
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/apache ] && . /etc/sysconfig/apache
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/apache ]; then
/sbin/service apache reload 1>&2 || :;
fi
fi };
fi

eventum < 1.6.0-RC2.6

/bin/sh
 
if [ "$1" = "1" ] && [ "$2" = "1" ]; then
	/usr/sbin/webapp register httpd eventum
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/httpd/webapps.d/eventum.conf ] && [ "$2" -lt "2" ]; then
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd reload 1>&2 || :;
fi
fi };
fi

eventum < 1.6.1-0.2

/bin/sh
 
# remove link if either of the packages are gone 
if [ -n "" ] || [ "$1" = "0" ] || [ "$2" = "0" ] && [ -L /etc/httpd/webapps.d/eventum.conf ]; then 
	/usr/sbin/webapp unregister httpd eventum
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd reload 1>&2 || :;
fi
fi };
fi 

# FIXME
# only one upgrade trigger is called if you're upgrading over two
# versions, say 1.5 to 1.5.3, only 1.5.3 trigger is called.
# use common trigger (the highest version and rpmvercmp from poldek?)

eventum < 1.7.0-2.0.48

/bin/sh
/usr/share/eventum/upgrade/upgrade.sh /usr/share/eventum/upgrade/v1.5_to_v1.5.1 <





apache1 < 1.3.37-3

/bin/sh
/usr/share/eventum/upgrade/upgrade.sh /usr/share/eventum/upgrade/v1.5.1_to_v1.5.2 <





apache1-base

/bin/sh
/usr/share/eventum/upgrade/upgrade.sh /usr/share/eventum/upgrade/v1.5.2_to_v1.5.3 <





apache1 < 1.3.37-3

/bin/sh
/usr/share/eventum/upgrade/upgrade.sh /usr/share/eventum/upgrade/v1.5.3_to_v1.5.4 <





apache1-base

/bin/sh
/usr/share/eventum/upgrade/upgrade.sh /usr/share/eventum/upgrade/v1.5.5_to_v1.6.0 <





apache < 2.2.0

/bin/sh
/usr/share/eventum/upgrade/upgrade.sh /usr/share/eventum/upgrade/v1.6.0_to_v1.6.1 <





apache-base

/bin/sh
# migrate from apache-config macros
if [ -f /etc/eventum/apache.conf.rpmsave ]; then
	if [ -d /etc/apache/webapps.d ]; then
		cp -f /etc/webapps/eventum/apache.conf{,.rpmnew}
		cp -f /etc/eventum/apache.conf.rpmsave /etc/webapps/eventum/apache.conf
	fi

	if [ -d /etc/httpd/webapps.d ]; then
		cp -f /etc/webapps/eventum/httpd.conf{,.rpmnew}
		cp -f /etc/eventum/apache.conf.rpmsave /etc/webapps/eventum/httpd.conf
	fi
fi

if [ -L /etc/apache/conf.d/99_eventum.conf ]; then
	/usr/sbin/webapp register apache eventum
	rm -f /etc/apache/conf.d/99_eventum.conf
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/apache ] && . /etc/sysconfig/apache
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/apache ]; then
/sbin/service apache reload 1>&2 || :;
fi
fi };fi
if [ -L /etc/httpd/httpd.conf/99_eventum.conf ]; then
	/usr/sbin/webapp register httpd eventum
	rm -f /etc/httpd/httpd.conf/99_eventum.conf
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd reload 1>&2 || :;
fi
fi };fi

/usr/share/eventum/upgrade/upgrade.sh /usr/share/eventum/upgrade/v1.6.1_to_v1.7.0 <





apache < 2.2.0

/bin/sh
 
if [ "$1" = "1" ] && [ "$2" = "1" ]; then
	/usr/sbin/webapp register apache eventum
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/apache/webapps.d/eventum.conf ] && [ "$2" -lt "2" ]; then
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/apache ] && . /etc/sysconfig/apache
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/apache ]; then
/sbin/service apache reload 1>&2 || :;
fi
fi };
fi

apache-base

/bin/sh
 
# remove link if either of the packages are gone 
if [ -n "" ] || [ "$1" = "0" ] || [ "$2" = "0" ] && [ -L /etc/apache/webapps.d/eventum.conf ]; then 
	/usr/sbin/webapp unregister apache eventum
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/apache ] && . /etc/sysconfig/apache
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/apache ]; then
/sbin/service apache reload 1>&2 || :;
fi
fi };
fi

eventum < 1.5.1-0.257

/bin/sh
 
if [ "$1" = "1" ] && [ "$2" = "1" ]; then
	/usr/sbin/webapp register httpd eventum
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/httpd/webapps.d/eventum.conf ] && [ "$2" -lt "2" ]; then
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd reload 1>&2 || :;
fi
fi };
fi

eventum < 1.5.2-0.289

/bin/sh
 
# remove link if either of the packages are gone 
if [ -n "" ] || [ "$1" = "0" ] || [ "$2" = "0" ] && [ -L /etc/httpd/webapps.d/eventum.conf ]; then 
	/usr/sbin/webapp unregister httpd eventum
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd reload 1>&2 || :;
fi
fi };
fi 

# FIXME
# only one upgrade trigger is called if you're upgrading over two
# versions, say 1.5 to 1.5.3, only 1.5.3 trigger is called.
# use common trigger (the highest version and rpmvercmp from poldek?)

eventum < 1.5.3-0.291

/bin/sh
/usr/share/eventum/upgrade/upgrade.sh /usr/share/eventum/upgrade/v1.5_to_v1.5.1 <





eventum < 1.5.4-1.12

/bin/sh
/usr/share/eventum/upgrade/upgrade.sh /usr/share/eventum/upgrade/v1.5.1_to_v1.5.2 <





eventum < 1.6.0-RC2.6

/bin/sh
/usr/share/eventum/upgrade/upgrade.sh /usr/share/eventum/upgrade/v1.5.2_to_v1.5.3 <





eventum < 1.6.1-0.2

/bin/sh
/usr/share/eventum/upgrade/upgrade.sh /usr/share/eventum/upgrade/v1.5.3_to_v1.5.4 <





eventum < 1.7.0-2.0.48

/bin/sh
/usr/share/eventum/upgrade/upgrade.sh /usr/share/eventum/upgrade/v1.5.5_to_v1.6.0 <





apache1 < 1.3.37-3

/bin/sh
/usr/share/eventum/upgrade/upgrade.sh /usr/share/eventum/upgrade/v1.6.0_to_v1.6.1 <





apache1-base

/bin/sh
# migrate from apache-config macros
if [ -f /etc/eventum/apache.conf.rpmsave ]; then
	if [ -d /etc/apache/webapps.d ]; then
		cp -f /etc/webapps/eventum/apache.conf{,.rpmnew}
		cp -f /etc/eventum/apache.conf.rpmsave /etc/webapps/eventum/apache.conf
	fi

	if [ -d /etc/httpd/webapps.d ]; then
		cp -f /etc/webapps/eventum/httpd.conf{,.rpmnew}
		cp -f /etc/eventum/apache.conf.rpmsave /etc/webapps/eventum/httpd.conf
	fi
fi

if [ -L /etc/apache/conf.d/99_eventum.conf ]; then
	/usr/sbin/webapp register apache eventum
	rm -f /etc/apache/conf.d/99_eventum.conf
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/apache ] && . /etc/sysconfig/apache
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/apache ]; then
/sbin/service apache reload 1>&2 || :;
fi
fi };fi
if [ -L /etc/httpd/httpd.conf/99_eventum.conf ]; then
	/usr/sbin/webapp register httpd eventum
	rm -f /etc/httpd/httpd.conf/99_eventum.conf
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd reload 1>&2 || :;
fi
fi };fi

/usr/share/eventum/upgrade/upgrade.sh /usr/share/eventum/upgrade/v1.6.1_to_v1.7.0 <





apache1 < 1.3.37-3

/bin/sh
 
if [ "$1" = "1" ] && [ "$2" = "1" ]; then
	/usr/sbin/webapp register apache eventum
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/apache/webapps.d/eventum.conf ] && [ "$2" -lt "2" ]; then
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/apache ] && . /etc/sysconfig/apache
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/apache ]; then
/sbin/service apache reload 1>&2 || :;
fi
fi };
fi

apache1-base

/bin/sh
 
# remove link if either of the packages are gone 
if [ -n "" ] || [ "$1" = "0" ] || [ "$2" = "0" ] && [ -L /etc/apache/webapps.d/eventum.conf ]; then 
	/usr/sbin/webapp unregister apache eventum
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/apache ] && . /etc/sysconfig/apache
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/apache ]; then
/sbin/service apache reload 1>&2 || :;
fi
fi };
fi

apache < 2.2.0

/bin/sh
 
if [ "$1" = "1" ] && [ "$2" = "1" ]; then
	/usr/sbin/webapp register httpd eventum
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/httpd/webapps.d/eventum.conf ] && [ "$2" -lt "2" ]; then
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd reload 1>&2 || :;
fi
fi };
fi

apache-base

/bin/sh
 
# remove link if either of the packages are gone 
if [ -n "" ] || [ "$1" = "0" ] || [ "$2" = "0" ] && [ -L /etc/httpd/webapps.d/eventum.conf ]; then 
	/usr/sbin/webapp unregister httpd eventum
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd reload 1>&2 || :;
fi
fi };
fi 

# FIXME
# only one upgrade trigger is called if you're upgrading over two
# versions, say 1.5 to 1.5.3, only 1.5.3 trigger is called.
# use common trigger (the highest version and rpmvercmp from poldek?)

apache < 2.2.0

/bin/sh
/usr/share/eventum/upgrade/upgrade.sh /usr/share/eventum/upgrade/v1.5_to_v1.5.1 <





apache-base

/bin/sh
/usr/share/eventum/upgrade/upgrade.sh /usr/share/eventum/upgrade/v1.5.1_to_v1.5.2 <





eventum < 1.5.1-0.257

/bin/sh
/usr/share/eventum/upgrade/upgrade.sh /usr/share/eventum/upgrade/v1.5.2_to_v1.5.3 <





eventum < 1.5.2-0.289

/bin/sh
/usr/share/eventum/upgrade/upgrade.sh /usr/share/eventum/upgrade/v1.5.3_to_v1.5.4 <





eventum < 1.5.3-0.291

/bin/sh
/usr/share/eventum/upgrade/upgrade.sh /usr/share/eventum/upgrade/v1.5.5_to_v1.6.0 <





eventum < 1.5.4-1.12

/bin/sh
/usr/share/eventum/upgrade/upgrade.sh /usr/share/eventum/upgrade/v1.6.0_to_v1.6.1 <





eventum < 1.6.0-RC2.6

/bin/sh
# migrate from apache-config macros
if [ -f /etc/eventum/apache.conf.rpmsave ]; then
	if [ -d /etc/apache/webapps.d ]; then
		cp -f /etc/webapps/eventum/apache.conf{,.rpmnew}
		cp -f /etc/eventum/apache.conf.rpmsave /etc/webapps/eventum/apache.conf
	fi

	if [ -d /etc/httpd/webapps.d ]; then
		cp -f /etc/webapps/eventum/httpd.conf{,.rpmnew}
		cp -f /etc/eventum/apache.conf.rpmsave /etc/webapps/eventum/httpd.conf
	fi
fi

if [ -L /etc/apache/conf.d/99_eventum.conf ]; then
	/usr/sbin/webapp register apache eventum
	rm -f /etc/apache/conf.d/99_eventum.conf
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/apache ] && . /etc/sysconfig/apache
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/apache ]; then
/sbin/service apache reload 1>&2 || :;
fi
fi };fi
if [ -L /etc/httpd/httpd.conf/99_eventum.conf ]; then
	/usr/sbin/webapp register httpd eventum
	rm -f /etc/httpd/httpd.conf/99_eventum.conf
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd reload 1>&2 || :;
fi
fi };fi

/usr/share/eventum/upgrade/upgrade.sh /usr/share/eventum/upgrade/v1.6.1_to_v1.7.0 <





eventum < 1.6.1-0.2

/bin/sh
 
if [ "$1" = "1" ] && [ "$2" = "1" ]; then
	/usr/sbin/webapp register apache eventum
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/apache/webapps.d/eventum.conf ] && [ "$2" -lt "2" ]; then
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/apache ] && . /etc/sysconfig/apache
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/apache ]; then
/sbin/service apache reload 1>&2 || :;
fi
fi };
fi

eventum < 1.7.0-2.0.48

/bin/sh
 
# remove link if either of the packages are gone 
if [ -n "" ] || [ "$1" = "0" ] || [ "$2" = "0" ] && [ -L /etc/apache/webapps.d/eventum.conf ]; then 
	/usr/sbin/webapp unregister apache eventum
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/apache ] && . /etc/sysconfig/apache
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/apache ]; then
/sbin/service apache reload 1>&2 || :;
fi
fi };
fi

apache1 < 1.3.37-3

/bin/sh
 
if [ "$1" = "1" ] && [ "$2" = "1" ]; then
	/usr/sbin/webapp register httpd eventum
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/httpd/webapps.d/eventum.conf ] && [ "$2" -lt "2" ]; then
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd reload 1>&2 || :;
fi
fi };
fi

apache1-base

/bin/sh
 
# remove link if either of the packages are gone 
if [ -n "" ] || [ "$1" = "0" ] || [ "$2" = "0" ] && [ -L /etc/httpd/webapps.d/eventum.conf ]; then 
	/usr/sbin/webapp unregister httpd eventum
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd reload 1>&2 || :;
fi
fi };
fi 

# FIXME
# only one upgrade trigger is called if you're upgrading over two
# versions, say 1.5 to 1.5.3, only 1.5.3 trigger is called.
# use common trigger (the highest version and rpmvercmp from poldek?)

apache1 < 1.3.37-3

/bin/sh
/usr/share/eventum/upgrade/upgrade.sh /usr/share/eventum/upgrade/v1.5_to_v1.5.1 <





apache1-base

/bin/sh
/usr/share/eventum/upgrade/upgrade.sh /usr/share/eventum/upgrade/v1.5.1_to_v1.5.2 <





apache < 2.2.0

/bin/sh
/usr/share/eventum/upgrade/upgrade.sh /usr/share/eventum/upgrade/v1.5.2_to_v1.5.3 <





apache-base

/bin/sh
/usr/share/eventum/upgrade/upgrade.sh /usr/share/eventum/upgrade/v1.5.3_to_v1.5.4 <





apache < 2.2.0

/bin/sh
/usr/share/eventum/upgrade/upgrade.sh /usr/share/eventum/upgrade/v1.5.5_to_v1.6.0 <





apache-base

/bin/sh
/usr/share/eventum/upgrade/upgrade.sh /usr/share/eventum/upgrade/v1.6.0_to_v1.6.1 <





eventum < 1.5.1-0.257

/bin/sh
# migrate from apache-config macros
if [ -f /etc/eventum/apache.conf.rpmsave ]; then
	if [ -d /etc/apache/webapps.d ]; then
		cp -f /etc/webapps/eventum/apache.conf{,.rpmnew}
		cp -f /etc/eventum/apache.conf.rpmsave /etc/webapps/eventum/apache.conf
	fi

	if [ -d /etc/httpd/webapps.d ]; then
		cp -f /etc/webapps/eventum/httpd.conf{,.rpmnew}
		cp -f /etc/eventum/apache.conf.rpmsave /etc/webapps/eventum/httpd.conf
	fi
fi

if [ -L /etc/apache/conf.d/99_eventum.conf ]; then
	/usr/sbin/webapp register apache eventum
	rm -f /etc/apache/conf.d/99_eventum.conf
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/apache ] && . /etc/sysconfig/apache
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/apache ]; then
/sbin/service apache reload 1>&2 || :;
fi
fi };fi
if [ -L /etc/httpd/httpd.conf/99_eventum.conf ]; then
	/usr/sbin/webapp register httpd eventum
	rm -f /etc/httpd/httpd.conf/99_eventum.conf
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd reload 1>&2 || :;
fi
fi };fi

/usr/share/eventum/upgrade/upgrade.sh /usr/share/eventum/upgrade/v1.6.1_to_v1.7.0 <





eventum < 1.5.2-0.289

/bin/sh
 
if [ "$1" = "1" ] && [ "$2" = "1" ]; then
	/usr/sbin/webapp register apache eventum
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/apache/webapps.d/eventum.conf ] && [ "$2" -lt "2" ]; then
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/apache ] && . /etc/sysconfig/apache
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/apache ]; then
/sbin/service apache reload 1>&2 || :;
fi
fi };
fi

eventum < 1.5.3-0.291

/bin/sh
 
# remove link if either of the packages are gone 
if [ -n "" ] || [ "$1" = "0" ] || [ "$2" = "0" ] && [ -L /etc/apache/webapps.d/eventum.conf ]; then 
	/usr/sbin/webapp unregister apache eventum
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/apache ] && . /etc/sysconfig/apache
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/apache ]; then
/sbin/service apache reload 1>&2 || :;
fi
fi };
fi

eventum < 1.5.4-1.12

/bin/sh
 
if [ "$1" = "1" ] && [ "$2" = "1" ]; then
	/usr/sbin/webapp register httpd eventum
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/httpd/webapps.d/eventum.conf ] && [ "$2" -lt "2" ]; then
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd reload 1>&2 || :;
fi
fi };
fi

eventum < 1.6.0-RC2.6

/bin/sh
 
# remove link if either of the packages are gone 
if [ -n "" ] || [ "$1" = "0" ] || [ "$2" = "0" ] && [ -L /etc/httpd/webapps.d/eventum.conf ]; then 
	/usr/sbin/webapp unregister httpd eventum
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd reload 1>&2 || :;
fi
fi };
fi 

# FIXME
# only one upgrade trigger is called if you're upgrading over two
# versions, say 1.5 to 1.5.3, only 1.5.3 trigger is called.
# use common trigger (the highest version and rpmvercmp from poldek?)

eventum < 1.6.1-0.2

/bin/sh
/usr/share/eventum/upgrade/upgrade.sh /usr/share/eventum/upgrade/v1.5_to_v1.5.1 <





eventum < 1.7.0-2.0.48

/bin/sh
/usr/share/eventum/upgrade/upgrade.sh /usr/share/eventum/upgrade/v1.5.1_to_v1.5.2 <





apache1 < 1.3.37-3

/bin/sh
/usr/share/eventum/upgrade/upgrade.sh /usr/share/eventum/upgrade/v1.5.2_to_v1.5.3 <





apache1-base

/bin/sh
/usr/share/eventum/upgrade/upgrade.sh /usr/share/eventum/upgrade/v1.5.3_to_v1.5.4 <





apache1 < 1.3.37-3

/bin/sh
/usr/share/eventum/upgrade/upgrade.sh /usr/share/eventum/upgrade/v1.5.5_to_v1.6.0 <





apache1-base

/bin/sh
/usr/share/eventum/upgrade/upgrade.sh /usr/share/eventum/upgrade/v1.6.0_to_v1.6.1 <





apache < 2.2.0

/bin/sh
# migrate from apache-config macros
if [ -f /etc/eventum/apache.conf.rpmsave ]; then
	if [ -d /etc/apache/webapps.d ]; then
		cp -f /etc/webapps/eventum/apache.conf{,.rpmnew}
		cp -f /etc/eventum/apache.conf.rpmsave /etc/webapps/eventum/apache.conf
	fi

	if [ -d /etc/httpd/webapps.d ]; then
		cp -f /etc/webapps/eventum/httpd.conf{,.rpmnew}
		cp -f /etc/eventum/apache.conf.rpmsave /etc/webapps/eventum/httpd.conf
	fi
fi

if [ -L /etc/apache/conf.d/99_eventum.conf ]; then
	/usr/sbin/webapp register apache eventum
	rm -f /etc/apache/conf.d/99_eventum.conf
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/apache ] && . /etc/sysconfig/apache
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/apache ]; then
/sbin/service apache reload 1>&2 || :;
fi
fi };fi
if [ -L /etc/httpd/httpd.conf/99_eventum.conf ]; then
	/usr/sbin/webapp register httpd eventum
	rm -f /etc/httpd/httpd.conf/99_eventum.conf
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd reload 1>&2 || :;
fi
fi };fi

/usr/share/eventum/upgrade/upgrade.sh /usr/share/eventum/upgrade/v1.6.1_to_v1.7.0 <





apache-base

/bin/sh
 
if [ "$1" = "1" ] && [ "$2" = "1" ]; then
	/usr/sbin/webapp register apache eventum
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/apache/webapps.d/eventum.conf ] && [ "$2" -lt "2" ]; then
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/apache ] && . /etc/sysconfig/apache
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/apache ]; then
/sbin/service apache reload 1>&2 || :;
fi
fi };
fi

apache < 2.2.0

/bin/sh
 
# remove link if either of the packages are gone 
if [ -n "" ] || [ "$1" = "0" ] || [ "$2" = "0" ] && [ -L /etc/apache/webapps.d/eventum.conf ]; then 
	/usr/sbin/webapp unregister apache eventum
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/apache ] && . /etc/sysconfig/apache
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/apache ]; then
/sbin/service apache reload 1>&2 || :;
fi
fi };
fi

apache-base

/bin/sh
 
if [ "$1" = "1" ] && [ "$2" = "1" ]; then
	/usr/sbin/webapp register httpd eventum
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/httpd/webapps.d/eventum.conf ] && [ "$2" -lt "2" ]; then
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd reload 1>&2 || :;
fi
fi };
fi

eventum < 1.5.1-0.257

/bin/sh
 
# remove link if either of the packages are gone 
if [ -n "" ] || [ "$1" = "0" ] || [ "$2" = "0" ] && [ -L /etc/httpd/webapps.d/eventum.conf ]; then 
	/usr/sbin/webapp unregister httpd eventum
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd reload 1>&2 || :;
fi
fi };
fi 

# FIXME
# only one upgrade trigger is called if you're upgrading over two
# versions, say 1.5 to 1.5.3, only 1.5.3 trigger is called.
# use common trigger (the highest version and rpmvercmp from poldek?)

eventum < 1.5.2-0.289

/bin/sh
/usr/share/eventum/upgrade/upgrade.sh /usr/share/eventum/upgrade/v1.5_to_v1.5.1 <





eventum < 1.5.3-0.291

/bin/sh
/usr/share/eventum/upgrade/upgrade.sh /usr/share/eventum/upgrade/v1.5.1_to_v1.5.2 <





eventum < 1.5.4-1.12

/bin/sh
/usr/share/eventum/upgrade/upgrade.sh /usr/share/eventum/upgrade/v1.5.2_to_v1.5.3 <





eventum < 1.6.0-RC2.6

/bin/sh
/usr/share/eventum/upgrade/upgrade.sh /usr/share/eventum/upgrade/v1.5.3_to_v1.5.4 <





eventum < 1.6.1-0.2

/bin/sh
/usr/share/eventum/upgrade/upgrade.sh /usr/share/eventum/upgrade/v1.5.5_to_v1.6.0 <





eventum < 1.7.0-2.0.48

/bin/sh
/usr/share/eventum/upgrade/upgrade.sh /usr/share/eventum/upgrade/v1.6.0_to_v1.6.1 <





apache1 < 1.3.37-3

/bin/sh
# migrate from apache-config macros
if [ -f /etc/eventum/apache.conf.rpmsave ]; then
	if [ -d /etc/apache/webapps.d ]; then
		cp -f /etc/webapps/eventum/apache.conf{,.rpmnew}
		cp -f /etc/eventum/apache.conf.rpmsave /etc/webapps/eventum/apache.conf
	fi

	if [ -d /etc/httpd/webapps.d ]; then
		cp -f /etc/webapps/eventum/httpd.conf{,.rpmnew}
		cp -f /etc/eventum/apache.conf.rpmsave /etc/webapps/eventum/httpd.conf
	fi
fi

if [ -L /etc/apache/conf.d/99_eventum.conf ]; then
	/usr/sbin/webapp register apache eventum
	rm -f /etc/apache/conf.d/99_eventum.conf
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/apache ] && . /etc/sysconfig/apache
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/apache ]; then
/sbin/service apache reload 1>&2 || :;
fi
fi };fi
if [ -L /etc/httpd/httpd.conf/99_eventum.conf ]; then
	/usr/sbin/webapp register httpd eventum
	rm -f /etc/httpd/httpd.conf/99_eventum.conf
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd reload 1>&2 || :;
fi
fi };fi

/usr/share/eventum/upgrade/upgrade.sh /usr/share/eventum/upgrade/v1.6.1_to_v1.7.0 <





apache1-base

/bin/sh
 
if [ "$1" = "1" ] && [ "$2" = "1" ]; then
	/usr/sbin/webapp register apache eventum
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/apache/webapps.d/eventum.conf ] && [ "$2" -lt "2" ]; then
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/apache ] && . /etc/sysconfig/apache
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/apache ]; then
/sbin/service apache reload 1>&2 || :;
fi
fi };
fi

apache1 < 1.3.37-3

/bin/sh
 
# remove link if either of the packages are gone 
if [ -n "" ] || [ "$1" = "0" ] || [ "$2" = "0" ] && [ -L /etc/apache/webapps.d/eventum.conf ]; then 
	/usr/sbin/webapp unregister apache eventum
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/apache ] && . /etc/sysconfig/apache
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/apache ]; then
/sbin/service apache reload 1>&2 || :;
fi
fi };
fi

apache1-base

/bin/sh
 
if [ "$1" = "1" ] && [ "$2" = "1" ]; then
	/usr/sbin/webapp register httpd eventum
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/httpd/webapps.d/eventum.conf ] && [ "$2" -lt "2" ]; then
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd reload 1>&2 || :;
fi
fi };
fi

apache < 2.2.0

/bin/sh
 
# remove link if either of the packages are gone 
if [ -n "" ] || [ "$1" = "0" ] || [ "$2" = "0" ] && [ -L /etc/httpd/webapps.d/eventum.conf ]; then 
	/usr/sbin/webapp unregister httpd eventum
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd reload 1>&2 || :;
fi
fi };
fi 

# FIXME
# only one upgrade trigger is called if you're upgrading over two
# versions, say 1.5 to 1.5.3, only 1.5.3 trigger is called.
# use common trigger (the highest version and rpmvercmp from poldek?)

apache-base

/bin/sh
/usr/share/eventum/upgrade/upgrade.sh /usr/share/eventum/upgrade/v1.5_to_v1.5.1 <





apache < 2.2.0

/bin/sh
/usr/share/eventum/upgrade/upgrade.sh /usr/share/eventum/upgrade/v1.5.1_to_v1.5.2 <





apache-base

/bin/sh
/usr/share/eventum/upgrade/upgrade.sh /usr/share/eventum/upgrade/v1.5.2_to_v1.5.3 <





eventum < 1.5.1-0.257

/bin/sh
/usr/share/eventum/upgrade/upgrade.sh /usr/share/eventum/upgrade/v1.5.3_to_v1.5.4 <





eventum < 1.5.2-0.289

/bin/sh
/usr/share/eventum/upgrade/upgrade.sh /usr/share/eventum/upgrade/v1.5.5_to_v1.6.0 <





eventum < 1.5.3-0.291

/bin/sh
/usr/share/eventum/upgrade/upgrade.sh /usr/share/eventum/upgrade/v1.6.0_to_v1.6.1 <





eventum < 1.5.4-1.12

/bin/sh
# migrate from apache-config macros
if [ -f /etc/eventum/apache.conf.rpmsave ]; then
	if [ -d /etc/apache/webapps.d ]; then
		cp -f /etc/webapps/eventum/apache.conf{,.rpmnew}
		cp -f /etc/eventum/apache.conf.rpmsave /etc/webapps/eventum/apache.conf
	fi

	if [ -d /etc/httpd/webapps.d ]; then
		cp -f /etc/webapps/eventum/httpd.conf{,.rpmnew}
		cp -f /etc/eventum/apache.conf.rpmsave /etc/webapps/eventum/httpd.conf
	fi
fi

if [ -L /etc/apache/conf.d/99_eventum.conf ]; then
	/usr/sbin/webapp register apache eventum
	rm -f /etc/apache/conf.d/99_eventum.conf
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/apache ] && . /etc/sysconfig/apache
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/apache ]; then
/sbin/service apache reload 1>&2 || :;
fi
fi };fi
if [ -L /etc/httpd/httpd.conf/99_eventum.conf ]; then
	/usr/sbin/webapp register httpd eventum
	rm -f /etc/httpd/httpd.conf/99_eventum.conf
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd reload 1>&2 || :;
fi
fi };fi

/usr/share/eventum/upgrade/upgrade.sh /usr/share/eventum/upgrade/v1.6.1_to_v1.7.0 <





eventum < 1.6.0-RC2.6

/bin/sh
 
if [ "$1" = "1" ] && [ "$2" = "1" ]; then
	/usr/sbin/webapp register apache eventum
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/apache/webapps.d/eventum.conf ] && [ "$2" -lt "2" ]; then
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/apache ] && . /etc/sysconfig/apache
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/apache ]; then
/sbin/service apache reload 1>&2 || :;
fi
fi };
fi

eventum < 1.6.1-0.2

/bin/sh
 
# remove link if either of the packages are gone 
if [ -n "" ] || [ "$1" = "0" ] || [ "$2" = "0" ] && [ -L /etc/apache/webapps.d/eventum.conf ]; then 
	/usr/sbin/webapp unregister apache eventum
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/apache ] && . /etc/sysconfig/apache
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/apache ]; then
/sbin/service apache reload 1>&2 || :;
fi
fi };
fi

eventum < 1.7.0-2.0.48

/bin/sh
 
if [ "$1" = "1" ] && [ "$2" = "1" ]; then
	/usr/sbin/webapp register httpd eventum
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/httpd/webapps.d/eventum.conf ] && [ "$2" -lt "2" ]; then
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd reload 1>&2 || :;
fi
fi };
fi

apache1 < 1.3.37-3

/bin/sh
 
# remove link if either of the packages are gone 
if [ -n "" ] || [ "$1" = "0" ] || [ "$2" = "0" ] && [ -L /etc/httpd/webapps.d/eventum.conf ]; then 
	/usr/sbin/webapp unregister httpd eventum
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd reload 1>&2 || :;
fi
fi };
fi 

# FIXME
# only one upgrade trigger is called if you're upgrading over two
# versions, say 1.5 to 1.5.3, only 1.5.3 trigger is called.
# use common trigger (the highest version and rpmvercmp from poldek?)

apache1-base

/bin/sh
/usr/share/eventum/upgrade/upgrade.sh /usr/share/eventum/upgrade/v1.5_to_v1.5.1 <





apache1 < 1.3.37-3

/bin/sh
/usr/share/eventum/upgrade/upgrade.sh /usr/share/eventum/upgrade/v1.5.1_to_v1.5.2 <





apache1-base

/bin/sh
/usr/share/eventum/upgrade/upgrade.sh /usr/share/eventum/upgrade/v1.5.2_to_v1.5.3 <





apache < 2.2.0

/bin/sh
/usr/share/eventum/upgrade/upgrade.sh /usr/share/eventum/upgrade/v1.5.3_to_v1.5.4 <





apache-base

/bin/sh
/usr/share/eventum/upgrade/upgrade.sh /usr/share/eventum/upgrade/v1.5.5_to_v1.6.0 <





apache < 2.2.0

/bin/sh
/usr/share/eventum/upgrade/upgrade.sh /usr/share/eventum/upgrade/v1.6.0_to_v1.6.1 <





apache-base

/bin/sh
# migrate from apache-config macros
if [ -f /etc/eventum/apache.conf.rpmsave ]; then
	if [ -d /etc/apache/webapps.d ]; then
		cp -f /etc/webapps/eventum/apache.conf{,.rpmnew}
		cp -f /etc/eventum/apache.conf.rpmsave /etc/webapps/eventum/apache.conf
	fi

	if [ -d /etc/httpd/webapps.d ]; then
		cp -f /etc/webapps/eventum/httpd.conf{,.rpmnew}
		cp -f /etc/eventum/apache.conf.rpmsave /etc/webapps/eventum/httpd.conf
	fi
fi

if [ -L /etc/apache/conf.d/99_eventum.conf ]; then
	/usr/sbin/webapp register apache eventum
	rm -f /etc/apache/conf.d/99_eventum.conf
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/apache ] && . /etc/sysconfig/apache
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/apache ]; then
/sbin/service apache reload 1>&2 || :;
fi
fi };fi
if [ -L /etc/httpd/httpd.conf/99_eventum.conf ]; then
	/usr/sbin/webapp register httpd eventum
	rm -f /etc/httpd/httpd.conf/99_eventum.conf
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd reload 1>&2 || :;
fi
fi };fi

/usr/share/eventum/upgrade/upgrade.sh /usr/share/eventum/upgrade/v1.6.1_to_v1.7.0 <





eventum < 1.5.1-0.257

/bin/sh
 
if [ "$1" = "1" ] && [ "$2" = "1" ]; then
	/usr/sbin/webapp register apache eventum
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/apache/webapps.d/eventum.conf ] && [ "$2" -lt "2" ]; then
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/apache ] && . /etc/sysconfig/apache
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/apache ]; then
/sbin/service apache reload 1>&2 || :;
fi
fi };
fi

eventum < 1.5.2-0.289

/bin/sh
 
# remove link if either of the packages are gone 
if [ -n "" ] || [ "$1" = "0" ] || [ "$2" = "0" ] && [ -L /etc/apache/webapps.d/eventum.conf ]; then 
	/usr/sbin/webapp unregister apache eventum
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/apache ] && . /etc/sysconfig/apache
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/apache ]; then
/sbin/service apache reload 1>&2 || :;
fi
fi };
fi

eventum < 1.5.3-0.291

/bin/sh
 
if [ "$1" = "1" ] && [ "$2" = "1" ]; then
	/usr/sbin/webapp register httpd eventum
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/httpd/webapps.d/eventum.conf ] && [ "$2" -lt "2" ]; then
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd reload 1>&2 || :;
fi
fi };
fi

eventum < 1.5.4-1.12

/bin/sh
 
# remove link if either of the packages are gone 
if [ -n "" ] || [ "$1" = "0" ] || [ "$2" = "0" ] && [ -L /etc/httpd/webapps.d/eventum.conf ]; then 
	/usr/sbin/webapp unregister httpd eventum
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd reload 1>&2 || :;
fi
fi };
fi 

# FIXME
# only one upgrade trigger is called if you're upgrading over two
# versions, say 1.5 to 1.5.3, only 1.5.3 trigger is called.
# use common trigger (the highest version and rpmvercmp from poldek?)

eventum < 1.6.0-RC2.6

/bin/sh
/usr/share/eventum/upgrade/upgrade.sh /usr/share/eventum/upgrade/v1.5_to_v1.5.1 <





eventum < 1.6.1-0.2

/bin/sh
/usr/share/eventum/upgrade/upgrade.sh /usr/share/eventum/upgrade/v1.5.1_to_v1.5.2 <





eventum < 1.7.0-2.0.48

/bin/sh
/usr/share/eventum/upgrade/upgrade.sh /usr/share/eventum/upgrade/v1.5.2_to_v1.5.3 <





apache1 < 1.3.37-3

/bin/sh
/usr/share/eventum/upgrade/upgrade.sh /usr/share/eventum/upgrade/v1.5.3_to_v1.5.4 <





apache1-base

/bin/sh
/usr/share/eventum/upgrade/upgrade.sh /usr/share/eventum/upgrade/v1.5.5_to_v1.6.0 <





apache1 < 1.3.37-3

/bin/sh
/usr/share/eventum/upgrade/upgrade.sh /usr/share/eventum/upgrade/v1.6.0_to_v1.6.1 <





apache1-base

/bin/sh
# migrate from apache-config macros
if [ -f /etc/eventum/apache.conf.rpmsave ]; then
	if [ -d /etc/apache/webapps.d ]; then
		cp -f /etc/webapps/eventum/apache.conf{,.rpmnew}
		cp -f /etc/eventum/apache.conf.rpmsave /etc/webapps/eventum/apache.conf
	fi

	if [ -d /etc/httpd/webapps.d ]; then
		cp -f /etc/webapps/eventum/httpd.conf{,.rpmnew}
		cp -f /etc/eventum/apache.conf.rpmsave /etc/webapps/eventum/httpd.conf
	fi
fi

if [ -L /etc/apache/conf.d/99_eventum.conf ]; then
	/usr/sbin/webapp register apache eventum
	rm -f /etc/apache/conf.d/99_eventum.conf
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/apache ] && . /etc/sysconfig/apache
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/apache ]; then
/sbin/service apache reload 1>&2 || :;
fi
fi };fi
if [ -L /etc/httpd/httpd.conf/99_eventum.conf ]; then
	/usr/sbin/webapp register httpd eventum
	rm -f /etc/httpd/httpd.conf/99_eventum.conf
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd reload 1>&2 || :;
fi
fi };fi

/usr/share/eventum/upgrade/upgrade.sh /usr/share/eventum/upgrade/v1.6.1_to_v1.7.0 <





apache < 2.2.0

/bin/sh
 
if [ "$1" = "1" ] && [ "$2" = "1" ]; then
	/usr/sbin/webapp register apache eventum
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/apache/webapps.d/eventum.conf ] && [ "$2" -lt "2" ]; then
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/apache ] && . /etc/sysconfig/apache
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/apache ]; then
/sbin/service apache reload 1>&2 || :;
fi
fi };
fi

apache-base

/bin/sh
 
# remove link if either of the packages are gone 
if [ -n "" ] || [ "$1" = "0" ] || [ "$2" = "0" ] && [ -L /etc/apache/webapps.d/eventum.conf ]; then 
	/usr/sbin/webapp unregister apache eventum
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/apache ] && . /etc/sysconfig/apache
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/apache ]; then
/sbin/service apache reload 1>&2 || :;
fi
fi };
fi

apache < 2.2.0

/bin/sh
 
if [ "$1" = "1" ] && [ "$2" = "1" ]; then
	/usr/sbin/webapp register httpd eventum
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/httpd/webapps.d/eventum.conf ] && [ "$2" -lt "2" ]; then
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd reload 1>&2 || :;
fi
fi };
fi

apache-base

/bin/sh
 
# remove link if either of the packages are gone 
if [ -n "" ] || [ "$1" = "0" ] || [ "$2" = "0" ] && [ -L /etc/httpd/webapps.d/eventum.conf ]; then 
	/usr/sbin/webapp unregister httpd eventum
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd reload 1>&2 || :;
fi
fi };
fi 

# FIXME
# only one upgrade trigger is called if you're upgrading over two
# versions, say 1.5 to 1.5.3, only 1.5.3 trigger is called.
# use common trigger (the highest version and rpmvercmp from poldek?)

eventum < 1.5.1-0.257

/bin/sh
/usr/share/eventum/upgrade/upgrade.sh /usr/share/eventum/upgrade/v1.5_to_v1.5.1 <





eventum < 1.5.2-0.289

/bin/sh
/usr/share/eventum/upgrade/upgrade.sh /usr/share/eventum/upgrade/v1.5.1_to_v1.5.2 <





eventum < 1.5.3-0.291

/bin/sh
/usr/share/eventum/upgrade/upgrade.sh /usr/share/eventum/upgrade/v1.5.2_to_v1.5.3 <





eventum < 1.5.4-1.12

/bin/sh
/usr/share/eventum/upgrade/upgrade.sh /usr/share/eventum/upgrade/v1.5.3_to_v1.5.4 <





eventum < 1.6.0-RC2.6

/bin/sh
/usr/share/eventum/upgrade/upgrade.sh /usr/share/eventum/upgrade/v1.5.5_to_v1.6.0 <





eventum < 1.6.1-0.2

/bin/sh
/usr/share/eventum/upgrade/upgrade.sh /usr/share/eventum/upgrade/v1.6.0_to_v1.6.1 <





eventum < 1.7.0-2.0.48

/bin/sh
# migrate from apache-config macros
if [ -f /etc/eventum/apache.conf.rpmsave ]; then
	if [ -d /etc/apache/webapps.d ]; then
		cp -f /etc/webapps/eventum/apache.conf{,.rpmnew}
		cp -f /etc/eventum/apache.conf.rpmsave /etc/webapps/eventum/apache.conf
	fi

	if [ -d /etc/httpd/webapps.d ]; then
		cp -f /etc/webapps/eventum/httpd.conf{,.rpmnew}
		cp -f /etc/eventum/apache.conf.rpmsave /etc/webapps/eventum/httpd.conf
	fi
fi

if [ -L /etc/apache/conf.d/99_eventum.conf ]; then
	/usr/sbin/webapp register apache eventum
	rm -f /etc/apache/conf.d/99_eventum.conf
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/apache ] && . /etc/sysconfig/apache
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/apache ]; then
/sbin/service apache reload 1>&2 || :;
fi
fi };fi
if [ -L /etc/httpd/httpd.conf/99_eventum.conf ]; then
	/usr/sbin/webapp register httpd eventum
	rm -f /etc/httpd/httpd.conf/99_eventum.conf
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd reload 1>&2 || :;
fi
fi };fi

/usr/share/eventum/upgrade/upgrade.sh /usr/share/eventum/upgrade/v1.6.1_to_v1.7.0 <