Triggers
apache1 <
1.3.37-3
/bin/sh
if [ "$1" = "1" ] && [ "$2" = "1" ]; then
/usr/sbin/webapp register apache amavis-stats
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/apache/webapps.d/amavis-stats.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/amavis-stats.conf ]; then
/usr/sbin/webapp unregister apache amavis-stats
{
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 amavis-stats
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/httpd/webapps.d/amavis-stats.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/amavis-stats.conf ]; then
/usr/sbin/webapp unregister httpd amavis-stats
{
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
if [ -f /etc/httpd/httpd.conf ]; then
sed -i -e "/^Include.*amavis-stats\/apache.conf/d" /etc/httpd/httpd.conf
fi
if [ -f /etc/amavis-stats/apache.conf.rpmsave ]; then
cp -f /etc/webapps/amavis-stats/httpd.conf{,.rpmnew}
mv -f /etc/amavis-stats/apache.conf.rpmsave /etc/webapps/amavis-stats/httpd.conf
fi
rm -f /etc/httpd/httpd.conf/99_amavis-stats.conf
/usr/sbin/webapp register httpd amavis-stats
{
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 };
apache-base
/bin/sh
if [ "$1" = "1" ] && [ "$2" = "1" ]; then
/usr/sbin/webapp register apache amavis-stats
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/apache/webapps.d/amavis-stats.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/amavis-stats.conf ]; then
/usr/sbin/webapp unregister apache amavis-stats
{
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 amavis-stats
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/httpd/webapps.d/amavis-stats.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
amavis-stats-php <
0.1.13-0.rc6.4.1
/bin/sh
# remove link if either of the packages are gone
if [ -n "" ] || [ "$1" = "0" ] || [ "$2" = "0" ] && [ -L /etc/httpd/webapps.d/amavis-stats.conf ]; then
/usr/sbin/webapp unregister httpd amavis-stats
{
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
if [ -f /etc/httpd/httpd.conf ]; then
sed -i -e "/^Include.*amavis-stats\/apache.conf/d" /etc/httpd/httpd.conf
fi
if [ -f /etc/amavis-stats/apache.conf.rpmsave ]; then
cp -f /etc/webapps/amavis-stats/httpd.conf{,.rpmnew}
mv -f /etc/amavis-stats/apache.conf.rpmsave /etc/webapps/amavis-stats/httpd.conf
fi
rm -f /etc/httpd/httpd.conf/99_amavis-stats.conf
/usr/sbin/webapp register httpd amavis-stats
{
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 };
apache1-base
/bin/sh
if [ "$1" = "1" ] && [ "$2" = "1" ]; then
/usr/sbin/webapp register apache amavis-stats
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/apache/webapps.d/amavis-stats.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/amavis-stats.conf ]; then
/usr/sbin/webapp unregister apache amavis-stats
{
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 amavis-stats
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/httpd/webapps.d/amavis-stats.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/amavis-stats.conf ]; then
/usr/sbin/webapp unregister httpd amavis-stats
{
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
if [ -f /etc/httpd/httpd.conf ]; then
sed -i -e "/^Include.*amavis-stats\/apache.conf/d" /etc/httpd/httpd.conf
fi
if [ -f /etc/amavis-stats/apache.conf.rpmsave ]; then
cp -f /etc/webapps/amavis-stats/httpd.conf{,.rpmnew}
mv -f /etc/amavis-stats/apache.conf.rpmsave /etc/webapps/amavis-stats/httpd.conf
fi
rm -f /etc/httpd/httpd.conf/99_amavis-stats.conf
/usr/sbin/webapp register httpd amavis-stats
{
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 };
apache <
2.2.0
/bin/sh
if [ "$1" = "1" ] && [ "$2" = "1" ]; then
/usr/sbin/webapp register apache amavis-stats
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/apache/webapps.d/amavis-stats.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/amavis-stats.conf ]; then
/usr/sbin/webapp unregister apache amavis-stats
{
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
amavis-stats-php <
0.1.13-0.rc6.4.1
/bin/sh
if [ "$1" = "1" ] && [ "$2" = "1" ]; then
/usr/sbin/webapp register httpd amavis-stats
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/httpd/webapps.d/amavis-stats.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/amavis-stats.conf ]; then
/usr/sbin/webapp unregister httpd amavis-stats
{
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
if [ -f /etc/httpd/httpd.conf ]; then
sed -i -e "/^Include.*amavis-stats\/apache.conf/d" /etc/httpd/httpd.conf
fi
if [ -f /etc/amavis-stats/apache.conf.rpmsave ]; then
cp -f /etc/webapps/amavis-stats/httpd.conf{,.rpmnew}
mv -f /etc/amavis-stats/apache.conf.rpmsave /etc/webapps/amavis-stats/httpd.conf
fi
rm -f /etc/httpd/httpd.conf/99_amavis-stats.conf
/usr/sbin/webapp register httpd amavis-stats
{
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 };
apache1 <
1.3.37-3
/bin/sh
if [ "$1" = "1" ] && [ "$2" = "1" ]; then
/usr/sbin/webapp register apache amavis-stats
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/apache/webapps.d/amavis-stats.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/amavis-stats.conf ]; then
/usr/sbin/webapp unregister apache amavis-stats
{
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 amavis-stats
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/httpd/webapps.d/amavis-stats.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/amavis-stats.conf ]; then
/usr/sbin/webapp unregister httpd amavis-stats
{
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
if [ -f /etc/httpd/httpd.conf ]; then
sed -i -e "/^Include.*amavis-stats\/apache.conf/d" /etc/httpd/httpd.conf
fi
if [ -f /etc/amavis-stats/apache.conf.rpmsave ]; then
cp -f /etc/webapps/amavis-stats/httpd.conf{,.rpmnew}
mv -f /etc/amavis-stats/apache.conf.rpmsave /etc/webapps/amavis-stats/httpd.conf
fi
rm -f /etc/httpd/httpd.conf/99_amavis-stats.conf
/usr/sbin/webapp register httpd amavis-stats
{
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 };
apache-base
/bin/sh
if [ "$1" = "1" ] && [ "$2" = "1" ]; then
/usr/sbin/webapp register apache amavis-stats
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/apache/webapps.d/amavis-stats.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
amavis-stats-php <
0.1.13-0.rc6.4.1
/bin/sh
# remove link if either of the packages are gone
if [ -n "" ] || [ "$1" = "0" ] || [ "$2" = "0" ] && [ -L /etc/apache/webapps.d/amavis-stats.conf ]; then
/usr/sbin/webapp unregister apache amavis-stats
{
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 amavis-stats
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/httpd/webapps.d/amavis-stats.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/amavis-stats.conf ]; then
/usr/sbin/webapp unregister httpd amavis-stats
{
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
if [ -f /etc/httpd/httpd.conf ]; then
sed -i -e "/^Include.*amavis-stats\/apache.conf/d" /etc/httpd/httpd.conf
fi
if [ -f /etc/amavis-stats/apache.conf.rpmsave ]; then
cp -f /etc/webapps/amavis-stats/httpd.conf{,.rpmnew}
mv -f /etc/amavis-stats/apache.conf.rpmsave /etc/webapps/amavis-stats/httpd.conf
fi
rm -f /etc/httpd/httpd.conf/99_amavis-stats.conf
/usr/sbin/webapp register httpd amavis-stats
{
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 };
apache1-base
/bin/sh
if [ "$1" = "1" ] && [ "$2" = "1" ]; then
/usr/sbin/webapp register apache amavis-stats
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/apache/webapps.d/amavis-stats.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/amavis-stats.conf ]; then
/usr/sbin/webapp unregister apache amavis-stats
{
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 amavis-stats
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/httpd/webapps.d/amavis-stats.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/amavis-stats.conf ]; then
/usr/sbin/webapp unregister httpd amavis-stats
{
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
if [ -f /etc/httpd/httpd.conf ]; then
sed -i -e "/^Include.*amavis-stats\/apache.conf/d" /etc/httpd/httpd.conf
fi
if [ -f /etc/amavis-stats/apache.conf.rpmsave ]; then
cp -f /etc/webapps/amavis-stats/httpd.conf{,.rpmnew}
mv -f /etc/amavis-stats/apache.conf.rpmsave /etc/webapps/amavis-stats/httpd.conf
fi
rm -f /etc/httpd/httpd.conf/99_amavis-stats.conf
/usr/sbin/webapp register httpd amavis-stats
{
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 };
amavis-stats-php <
0.1.13-0.rc6.4.1
/bin/sh
if [ "$1" = "1" ] && [ "$2" = "1" ]; then
/usr/sbin/webapp register apache amavis-stats
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/apache/webapps.d/amavis-stats.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/amavis-stats.conf ]; then
/usr/sbin/webapp unregister apache amavis-stats
{
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 amavis-stats
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/httpd/webapps.d/amavis-stats.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/amavis-stats.conf ]; then
/usr/sbin/webapp unregister httpd amavis-stats
{
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
if [ -f /etc/httpd/httpd.conf ]; then
sed -i -e "/^Include.*amavis-stats\/apache.conf/d" /etc/httpd/httpd.conf
fi
if [ -f /etc/amavis-stats/apache.conf.rpmsave ]; then
cp -f /etc/webapps/amavis-stats/httpd.conf{,.rpmnew}
mv -f /etc/amavis-stats/apache.conf.rpmsave /etc/webapps/amavis-stats/httpd.conf
fi
rm -f /etc/httpd/httpd.conf/99_amavis-stats.conf
/usr/sbin/webapp register httpd amavis-stats
{
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 };
apache <
2.2.0
/bin/sh
if [ "$1" = "1" ] && [ "$2" = "1" ]; then
/usr/sbin/webapp register apache amavis-stats
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/apache/webapps.d/amavis-stats.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/amavis-stats.conf ]; then
/usr/sbin/webapp unregister apache amavis-stats
{
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 amavis-stats
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/httpd/webapps.d/amavis-stats.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/amavis-stats.conf ]; then
/usr/sbin/webapp unregister httpd amavis-stats
{
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
amavis-stats-php <
0.1.13-0.rc6.4.1
/bin/sh
if [ -f /etc/httpd/httpd.conf ]; then
sed -i -e "/^Include.*amavis-stats\/apache.conf/d" /etc/httpd/httpd.conf
fi
if [ -f /etc/amavis-stats/apache.conf.rpmsave ]; then
cp -f /etc/webapps/amavis-stats/httpd.conf{,.rpmnew}
mv -f /etc/amavis-stats/apache.conf.rpmsave /etc/webapps/amavis-stats/httpd.conf
fi
rm -f /etc/httpd/httpd.conf/99_amavis-stats.conf
/usr/sbin/webapp register httpd amavis-stats
{
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 };