Triggers
apache1 <
1.3.37-3
/bin/sh
if [ "$1" = "1" ] && [ "$2" = "1" ]; then
/usr/sbin/webapp register apache mythweb
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/apache/webapps.d/mythweb.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/mythweb.conf ]; then
/usr/sbin/webapp unregister apache mythweb
{
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 mythweb
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/httpd/webapps.d/mythweb.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/mythweb.conf ]; then
/usr/sbin/webapp unregister httpd mythweb
{
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
for i in canned_searches.php conf.php htpasswd theme_Default.php theme_compact.php theme_vxml.php theme_wap.php theme_wml.php weathertypes.dat; do
if [ -f /etc/mythweb/$i.rpmsave ]; then
mv -f /etc/webapps/mythweb/$i{,.rpmnew}
mv -f /etc/mythweb/$i.rpmsave /etc/webapps/mythweb/$i
fi
done
sed -i -e 's,/etc/mythweb,/etc/webapps/mythweb,' /etc/webapps/mythweb/{apache,httpd}.conf
# migrate from apache-config macros
if [ -f /etc/mythweb/apache.conf.rpmsave ]; then
if [ -d /etc/apache/webapps.d ]; then
cp -f /etc/webapps/mythweb/apache.conf{,.rpmnew}
cp -f /etc/mythweb/apache.conf.rpmsave /etc/webapps/mythweb/apache.conf
fi
if [ -d /etc/httpd/webapps.d ]; then
cp -f /etc/webapps/mythweb/httpd.conf{,.rpmnew}
cp -f /etc/mythweb/apache.conf.rpmsave /etc/webapps/mythweb/httpd.conf
fi
rm -f /etc/mythweb/apache.conf.rpmsave
fi
if [ -L /etc/apache/conf.d/99_mythplugins.conf ]; then
rm -f /etc/apache/conf.d/99_mythplugins.conf
/usr/sbin/webapp register apache mythweb
{
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_mythplugins.conf ]; then
rm -f /etc/httpd/httpd.conf/99_mythplugins.conf
/usr/sbin/webapp register httpd mythweb
{
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 [ "$1" = "1" ] && [ "$2" = "1" ]; then
/usr/sbin/webapp register apache mythweb
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/apache/webapps.d/mythweb.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/mythweb.conf ]; then
/usr/sbin/webapp unregister apache mythweb
{
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 mythweb
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/httpd/webapps.d/mythweb.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
mythweb <
0.19
/bin/sh
# remove link if either of the packages are gone
if [ -n "" ] || [ "$1" = "0" ] || [ "$2" = "0" ] && [ -L /etc/httpd/webapps.d/mythweb.conf ]; then
/usr/sbin/webapp unregister httpd mythweb
{
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
for i in canned_searches.php conf.php htpasswd theme_Default.php theme_compact.php theme_vxml.php theme_wap.php theme_wml.php weathertypes.dat; do
if [ -f /etc/mythweb/$i.rpmsave ]; then
mv -f /etc/webapps/mythweb/$i{,.rpmnew}
mv -f /etc/mythweb/$i.rpmsave /etc/webapps/mythweb/$i
fi
done
sed -i -e 's,/etc/mythweb,/etc/webapps/mythweb,' /etc/webapps/mythweb/{apache,httpd}.conf
# migrate from apache-config macros
if [ -f /etc/mythweb/apache.conf.rpmsave ]; then
if [ -d /etc/apache/webapps.d ]; then
cp -f /etc/webapps/mythweb/apache.conf{,.rpmnew}
cp -f /etc/mythweb/apache.conf.rpmsave /etc/webapps/mythweb/apache.conf
fi
if [ -d /etc/httpd/webapps.d ]; then
cp -f /etc/webapps/mythweb/httpd.conf{,.rpmnew}
cp -f /etc/mythweb/apache.conf.rpmsave /etc/webapps/mythweb/httpd.conf
fi
rm -f /etc/mythweb/apache.conf.rpmsave
fi
if [ -L /etc/apache/conf.d/99_mythplugins.conf ]; then
rm -f /etc/apache/conf.d/99_mythplugins.conf
/usr/sbin/webapp register apache mythweb
{
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_mythplugins.conf ]; then
rm -f /etc/httpd/httpd.conf/99_mythplugins.conf
/usr/sbin/webapp register httpd mythweb
{
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 [ "$1" = "1" ] && [ "$2" = "1" ]; then
/usr/sbin/webapp register apache mythweb
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/apache/webapps.d/mythweb.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/mythweb.conf ]; then
/usr/sbin/webapp unregister apache mythweb
{
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 mythweb
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/httpd/webapps.d/mythweb.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/mythweb.conf ]; then
/usr/sbin/webapp unregister httpd mythweb
{
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
for i in canned_searches.php conf.php htpasswd theme_Default.php theme_compact.php theme_vxml.php theme_wap.php theme_wml.php weathertypes.dat; do
if [ -f /etc/mythweb/$i.rpmsave ]; then
mv -f /etc/webapps/mythweb/$i{,.rpmnew}
mv -f /etc/mythweb/$i.rpmsave /etc/webapps/mythweb/$i
fi
done
sed -i -e 's,/etc/mythweb,/etc/webapps/mythweb,' /etc/webapps/mythweb/{apache,httpd}.conf
# migrate from apache-config macros
if [ -f /etc/mythweb/apache.conf.rpmsave ]; then
if [ -d /etc/apache/webapps.d ]; then
cp -f /etc/webapps/mythweb/apache.conf{,.rpmnew}
cp -f /etc/mythweb/apache.conf.rpmsave /etc/webapps/mythweb/apache.conf
fi
if [ -d /etc/httpd/webapps.d ]; then
cp -f /etc/webapps/mythweb/httpd.conf{,.rpmnew}
cp -f /etc/mythweb/apache.conf.rpmsave /etc/webapps/mythweb/httpd.conf
fi
rm -f /etc/mythweb/apache.conf.rpmsave
fi
if [ -L /etc/apache/conf.d/99_mythplugins.conf ]; then
rm -f /etc/apache/conf.d/99_mythplugins.conf
/usr/sbin/webapp register apache mythweb
{
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_mythplugins.conf ]; then
rm -f /etc/httpd/httpd.conf/99_mythplugins.conf
/usr/sbin/webapp register httpd mythweb
{
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 [ "$1" = "1" ] && [ "$2" = "1" ]; then
/usr/sbin/webapp register apache mythweb
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/apache/webapps.d/mythweb.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/mythweb.conf ]; then
/usr/sbin/webapp unregister apache mythweb
{
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
mythweb <
0.19
/bin/sh
if [ "$1" = "1" ] && [ "$2" = "1" ]; then
/usr/sbin/webapp register httpd mythweb
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/httpd/webapps.d/mythweb.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/mythweb.conf ]; then
/usr/sbin/webapp unregister httpd mythweb
{
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
for i in canned_searches.php conf.php htpasswd theme_Default.php theme_compact.php theme_vxml.php theme_wap.php theme_wml.php weathertypes.dat; do
if [ -f /etc/mythweb/$i.rpmsave ]; then
mv -f /etc/webapps/mythweb/$i{,.rpmnew}
mv -f /etc/mythweb/$i.rpmsave /etc/webapps/mythweb/$i
fi
done
sed -i -e 's,/etc/mythweb,/etc/webapps/mythweb,' /etc/webapps/mythweb/{apache,httpd}.conf
# migrate from apache-config macros
if [ -f /etc/mythweb/apache.conf.rpmsave ]; then
if [ -d /etc/apache/webapps.d ]; then
cp -f /etc/webapps/mythweb/apache.conf{,.rpmnew}
cp -f /etc/mythweb/apache.conf.rpmsave /etc/webapps/mythweb/apache.conf
fi
if [ -d /etc/httpd/webapps.d ]; then
cp -f /etc/webapps/mythweb/httpd.conf{,.rpmnew}
cp -f /etc/mythweb/apache.conf.rpmsave /etc/webapps/mythweb/httpd.conf
fi
rm -f /etc/mythweb/apache.conf.rpmsave
fi
if [ -L /etc/apache/conf.d/99_mythplugins.conf ]; then
rm -f /etc/apache/conf.d/99_mythplugins.conf
/usr/sbin/webapp register apache mythweb
{
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_mythplugins.conf ]; then
rm -f /etc/httpd/httpd.conf/99_mythplugins.conf
/usr/sbin/webapp register httpd mythweb
{
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 [ "$1" = "1" ] && [ "$2" = "1" ]; then
/usr/sbin/webapp register apache mythweb
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/apache/webapps.d/mythweb.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/mythweb.conf ]; then
/usr/sbin/webapp unregister apache mythweb
{
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 mythweb
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/httpd/webapps.d/mythweb.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/mythweb.conf ]; then
/usr/sbin/webapp unregister httpd mythweb
{
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
for i in canned_searches.php conf.php htpasswd theme_Default.php theme_compact.php theme_vxml.php theme_wap.php theme_wml.php weathertypes.dat; do
if [ -f /etc/mythweb/$i.rpmsave ]; then
mv -f /etc/webapps/mythweb/$i{,.rpmnew}
mv -f /etc/mythweb/$i.rpmsave /etc/webapps/mythweb/$i
fi
done
sed -i -e 's,/etc/mythweb,/etc/webapps/mythweb,' /etc/webapps/mythweb/{apache,httpd}.conf
# migrate from apache-config macros
if [ -f /etc/mythweb/apache.conf.rpmsave ]; then
if [ -d /etc/apache/webapps.d ]; then
cp -f /etc/webapps/mythweb/apache.conf{,.rpmnew}
cp -f /etc/mythweb/apache.conf.rpmsave /etc/webapps/mythweb/apache.conf
fi
if [ -d /etc/httpd/webapps.d ]; then
cp -f /etc/webapps/mythweb/httpd.conf{,.rpmnew}
cp -f /etc/mythweb/apache.conf.rpmsave /etc/webapps/mythweb/httpd.conf
fi
rm -f /etc/mythweb/apache.conf.rpmsave
fi
if [ -L /etc/apache/conf.d/99_mythplugins.conf ]; then
rm -f /etc/apache/conf.d/99_mythplugins.conf
/usr/sbin/webapp register apache mythweb
{
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_mythplugins.conf ]; then
rm -f /etc/httpd/httpd.conf/99_mythplugins.conf
/usr/sbin/webapp register httpd mythweb
{
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 [ "$1" = "1" ] && [ "$2" = "1" ]; then
/usr/sbin/webapp register apache mythweb
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/apache/webapps.d/mythweb.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
mythweb <
0.19
/bin/sh
# remove link if either of the packages are gone
if [ -n "" ] || [ "$1" = "0" ] || [ "$2" = "0" ] && [ -L /etc/apache/webapps.d/mythweb.conf ]; then
/usr/sbin/webapp unregister apache mythweb
{
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 mythweb
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/httpd/webapps.d/mythweb.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/mythweb.conf ]; then
/usr/sbin/webapp unregister httpd mythweb
{
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
for i in canned_searches.php conf.php htpasswd theme_Default.php theme_compact.php theme_vxml.php theme_wap.php theme_wml.php weathertypes.dat; do
if [ -f /etc/mythweb/$i.rpmsave ]; then
mv -f /etc/webapps/mythweb/$i{,.rpmnew}
mv -f /etc/mythweb/$i.rpmsave /etc/webapps/mythweb/$i
fi
done
sed -i -e 's,/etc/mythweb,/etc/webapps/mythweb,' /etc/webapps/mythweb/{apache,httpd}.conf
# migrate from apache-config macros
if [ -f /etc/mythweb/apache.conf.rpmsave ]; then
if [ -d /etc/apache/webapps.d ]; then
cp -f /etc/webapps/mythweb/apache.conf{,.rpmnew}
cp -f /etc/mythweb/apache.conf.rpmsave /etc/webapps/mythweb/apache.conf
fi
if [ -d /etc/httpd/webapps.d ]; then
cp -f /etc/webapps/mythweb/httpd.conf{,.rpmnew}
cp -f /etc/mythweb/apache.conf.rpmsave /etc/webapps/mythweb/httpd.conf
fi
rm -f /etc/mythweb/apache.conf.rpmsave
fi
if [ -L /etc/apache/conf.d/99_mythplugins.conf ]; then
rm -f /etc/apache/conf.d/99_mythplugins.conf
/usr/sbin/webapp register apache mythweb
{
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_mythplugins.conf ]; then
rm -f /etc/httpd/httpd.conf/99_mythplugins.conf
/usr/sbin/webapp register httpd mythweb
{
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 [ "$1" = "1" ] && [ "$2" = "1" ]; then
/usr/sbin/webapp register apache mythweb
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/apache/webapps.d/mythweb.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/mythweb.conf ]; then
/usr/sbin/webapp unregister apache mythweb
{
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 mythweb
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/httpd/webapps.d/mythweb.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/mythweb.conf ]; then
/usr/sbin/webapp unregister httpd mythweb
{
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
for i in canned_searches.php conf.php htpasswd theme_Default.php theme_compact.php theme_vxml.php theme_wap.php theme_wml.php weathertypes.dat; do
if [ -f /etc/mythweb/$i.rpmsave ]; then
mv -f /etc/webapps/mythweb/$i{,.rpmnew}
mv -f /etc/mythweb/$i.rpmsave /etc/webapps/mythweb/$i
fi
done
sed -i -e 's,/etc/mythweb,/etc/webapps/mythweb,' /etc/webapps/mythweb/{apache,httpd}.conf
# migrate from apache-config macros
if [ -f /etc/mythweb/apache.conf.rpmsave ]; then
if [ -d /etc/apache/webapps.d ]; then
cp -f /etc/webapps/mythweb/apache.conf{,.rpmnew}
cp -f /etc/mythweb/apache.conf.rpmsave /etc/webapps/mythweb/apache.conf
fi
if [ -d /etc/httpd/webapps.d ]; then
cp -f /etc/webapps/mythweb/httpd.conf{,.rpmnew}
cp -f /etc/mythweb/apache.conf.rpmsave /etc/webapps/mythweb/httpd.conf
fi
rm -f /etc/mythweb/apache.conf.rpmsave
fi
if [ -L /etc/apache/conf.d/99_mythplugins.conf ]; then
rm -f /etc/apache/conf.d/99_mythplugins.conf
/usr/sbin/webapp register apache mythweb
{
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_mythplugins.conf ]; then
rm -f /etc/httpd/httpd.conf/99_mythplugins.conf
/usr/sbin/webapp register httpd mythweb
{
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
mythweb <
0.19
/bin/sh
if [ "$1" = "1" ] && [ "$2" = "1" ]; then
/usr/sbin/webapp register apache mythweb
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/apache/webapps.d/mythweb.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/mythweb.conf ]; then
/usr/sbin/webapp unregister apache mythweb
{
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 mythweb
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/httpd/webapps.d/mythweb.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/mythweb.conf ]; then
/usr/sbin/webapp unregister httpd mythweb
{
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
for i in canned_searches.php conf.php htpasswd theme_Default.php theme_compact.php theme_vxml.php theme_wap.php theme_wml.php weathertypes.dat; do
if [ -f /etc/mythweb/$i.rpmsave ]; then
mv -f /etc/webapps/mythweb/$i{,.rpmnew}
mv -f /etc/mythweb/$i.rpmsave /etc/webapps/mythweb/$i
fi
done
sed -i -e 's,/etc/mythweb,/etc/webapps/mythweb,' /etc/webapps/mythweb/{apache,httpd}.conf
# migrate from apache-config macros
if [ -f /etc/mythweb/apache.conf.rpmsave ]; then
if [ -d /etc/apache/webapps.d ]; then
cp -f /etc/webapps/mythweb/apache.conf{,.rpmnew}
cp -f /etc/mythweb/apache.conf.rpmsave /etc/webapps/mythweb/apache.conf
fi
if [ -d /etc/httpd/webapps.d ]; then
cp -f /etc/webapps/mythweb/httpd.conf{,.rpmnew}
cp -f /etc/mythweb/apache.conf.rpmsave /etc/webapps/mythweb/httpd.conf
fi
rm -f /etc/mythweb/apache.conf.rpmsave
fi
if [ -L /etc/apache/conf.d/99_mythplugins.conf ]; then
rm -f /etc/apache/conf.d/99_mythplugins.conf
/usr/sbin/webapp register apache mythweb
{
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_mythplugins.conf ]; then
rm -f /etc/httpd/httpd.conf/99_mythplugins.conf
/usr/sbin/webapp register httpd mythweb
{
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 [ "$1" = "1" ] && [ "$2" = "1" ]; then
/usr/sbin/webapp register apache mythweb
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/apache/webapps.d/mythweb.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/mythweb.conf ]; then
/usr/sbin/webapp unregister apache mythweb
{
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 mythweb
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/httpd/webapps.d/mythweb.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/mythweb.conf ]; then
/usr/sbin/webapp unregister httpd mythweb
{
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
mythweb <
0.19
/bin/sh
for i in canned_searches.php conf.php htpasswd theme_Default.php theme_compact.php theme_vxml.php theme_wap.php theme_wml.php weathertypes.dat; do
if [ -f /etc/mythweb/$i.rpmsave ]; then
mv -f /etc/webapps/mythweb/$i{,.rpmnew}
mv -f /etc/mythweb/$i.rpmsave /etc/webapps/mythweb/$i
fi
done
sed -i -e 's,/etc/mythweb,/etc/webapps/mythweb,' /etc/webapps/mythweb/{apache,httpd}.conf
# migrate from apache-config macros
if [ -f /etc/mythweb/apache.conf.rpmsave ]; then
if [ -d /etc/apache/webapps.d ]; then
cp -f /etc/webapps/mythweb/apache.conf{,.rpmnew}
cp -f /etc/mythweb/apache.conf.rpmsave /etc/webapps/mythweb/apache.conf
fi
if [ -d /etc/httpd/webapps.d ]; then
cp -f /etc/webapps/mythweb/httpd.conf{,.rpmnew}
cp -f /etc/mythweb/apache.conf.rpmsave /etc/webapps/mythweb/httpd.conf
fi
rm -f /etc/mythweb/apache.conf.rpmsave
fi
if [ -L /etc/apache/conf.d/99_mythplugins.conf ]; then
rm -f /etc/apache/conf.d/99_mythplugins.conf
/usr/sbin/webapp register apache mythweb
{
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_mythplugins.conf ]; then
rm -f /etc/httpd/httpd.conf/99_mythplugins.conf
/usr/sbin/webapp register httpd mythweb
{
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