PREUN
/bin/sh
if [ "$1" = "0" ]; then
/sbin/chkconfig --del sqwebmail
{
if [ -f /var/lock/subsys/sqwebmail ]; then
/sbin/service sqwebmail stop 1>&2 || :;
fi }; [ ! -L /usr/share/sqwebmail/html/en ] || rm -f /usr/share/sqwebmail/html/en
fi
POSTIN
/bin/sh
[ -L /usr/share/sqwebmail/html/en ] || ln -fs en-us /usr/share/sqwebmail/html/en
/sbin/chkconfig --add sqwebmail
{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/sqwebmail ] && . /etc/sysconfig/sqwebmail
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/sqwebmail ]; then
/sbin/service sqwebmail restart 1>&2 || :;
else
echo 'Run "/sbin/service sqwebmail start" to start sqwebmail service.'
fi
fi };
Triggers
apache1 <
1.3.37-3
/bin/sh
if [ "$1" = "1" ] && [ "$2" = "1" ]; then
/usr/sbin/webapp register apache sqwebmail
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/apache/webapps.d/sqwebmail.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/sqwebmail.conf ]; then
/usr/sbin/webapp unregister apache sqwebmail
{
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 sqwebmail
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/httpd/webapps.d/sqwebmail.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/sqwebmail.conf ]; then
/usr/sbin/webapp unregister httpd sqwebmail
{
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
# rescue app configs
for i in ldapaddressbook sqwebmaild; do
if [ -f /etc/sqwebmail/$i.rpmsave ]; then
mv -f /etc/webapps/sqwebmail/$i{,.rpmnew}
mv -f /etc/sqwebmail/$i.rpmsave /etc/webapps/sqwebmail/$i
fi
done
if [ -f /etc/sqwebmail/apache-sqwebmail.conf.rpmsave ]; then
if [ -d /etc/apache/webapps.d ]; then
cp -f /etc/webapps/sqwebmail/apache.conf{,.rpmnew}
cp -f /etc/sqwebmail/apache-sqwebmail.conf.rpmsave /etc/webapps/sqwebmail/apache.conf
fi
if [ -d /etc/httpd/webapps.d ]; then
cp -f /etc/webapps/sqwebmail/httpd.conf{,.rpmnew}
cp -f /etc/sqwebmail/apache-sqwebmail.conf.rpmsave /etc/webapps/sqwebmail/httpd.conf
fi
rm -f /etc/sqwebmail/apache-sqwebmail.conf.rpmsave
fi
if [ -L /etc/apache/conf.d/99_sqwebmail.conf ]; then
rm -f /etc/apache/conf.d/99_sqwebmail.conf
apache_reload=1
fi
if [ -L /etc/httpd/httpd.conf/99_sqwebmail.conf ]; then
rm -f /etc/httpd/httpd.conf/99_sqwebmail.conf
httpd_reload=1
fi
if [ "$httpd_reload" ]; then
/usr/sbin/webapp register httpd sqwebmail
{
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 || :;
else
echo 'Run "/sbin/service httpd start" to start httpd service.'
fi
fi };fi
if [ "$apache_reload" ]; then
/usr/sbin/webapp register apache sqwebmail
{
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 || :;
else
echo 'Run "/sbin/service apache start" to start apache service.'
fi
fi };fi
apache-base
/bin/sh
if [ "$1" = "1" ] && [ "$2" = "1" ]; then
/usr/sbin/webapp register apache sqwebmail
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/apache/webapps.d/sqwebmail.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/sqwebmail.conf ]; then
/usr/sbin/webapp unregister apache sqwebmail
{
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 sqwebmail
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/httpd/webapps.d/sqwebmail.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
sqwebmail <
5.0.4-1.1
/bin/sh
# remove link if either of the packages are gone
if [ -n "" ] || [ "$1" = "0" ] || [ "$2" = "0" ] && [ -L /etc/httpd/webapps.d/sqwebmail.conf ]; then
/usr/sbin/webapp unregister httpd sqwebmail
{
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
# rescue app configs
for i in ldapaddressbook sqwebmaild; do
if [ -f /etc/sqwebmail/$i.rpmsave ]; then
mv -f /etc/webapps/sqwebmail/$i{,.rpmnew}
mv -f /etc/sqwebmail/$i.rpmsave /etc/webapps/sqwebmail/$i
fi
done
if [ -f /etc/sqwebmail/apache-sqwebmail.conf.rpmsave ]; then
if [ -d /etc/apache/webapps.d ]; then
cp -f /etc/webapps/sqwebmail/apache.conf{,.rpmnew}
cp -f /etc/sqwebmail/apache-sqwebmail.conf.rpmsave /etc/webapps/sqwebmail/apache.conf
fi
if [ -d /etc/httpd/webapps.d ]; then
cp -f /etc/webapps/sqwebmail/httpd.conf{,.rpmnew}
cp -f /etc/sqwebmail/apache-sqwebmail.conf.rpmsave /etc/webapps/sqwebmail/httpd.conf
fi
rm -f /etc/sqwebmail/apache-sqwebmail.conf.rpmsave
fi
if [ -L /etc/apache/conf.d/99_sqwebmail.conf ]; then
rm -f /etc/apache/conf.d/99_sqwebmail.conf
apache_reload=1
fi
if [ -L /etc/httpd/httpd.conf/99_sqwebmail.conf ]; then
rm -f /etc/httpd/httpd.conf/99_sqwebmail.conf
httpd_reload=1
fi
if [ "$httpd_reload" ]; then
/usr/sbin/webapp register httpd sqwebmail
{
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 || :;
else
echo 'Run "/sbin/service httpd start" to start httpd service.'
fi
fi };fi
if [ "$apache_reload" ]; then
/usr/sbin/webapp register apache sqwebmail
{
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 || :;
else
echo 'Run "/sbin/service apache start" to start apache service.'
fi
fi };fi
apache1-base
/bin/sh
if [ "$1" = "1" ] && [ "$2" = "1" ]; then
/usr/sbin/webapp register apache sqwebmail
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/apache/webapps.d/sqwebmail.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/sqwebmail.conf ]; then
/usr/sbin/webapp unregister apache sqwebmail
{
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 sqwebmail
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/httpd/webapps.d/sqwebmail.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/sqwebmail.conf ]; then
/usr/sbin/webapp unregister httpd sqwebmail
{
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
# rescue app configs
for i in ldapaddressbook sqwebmaild; do
if [ -f /etc/sqwebmail/$i.rpmsave ]; then
mv -f /etc/webapps/sqwebmail/$i{,.rpmnew}
mv -f /etc/sqwebmail/$i.rpmsave /etc/webapps/sqwebmail/$i
fi
done
if [ -f /etc/sqwebmail/apache-sqwebmail.conf.rpmsave ]; then
if [ -d /etc/apache/webapps.d ]; then
cp -f /etc/webapps/sqwebmail/apache.conf{,.rpmnew}
cp -f /etc/sqwebmail/apache-sqwebmail.conf.rpmsave /etc/webapps/sqwebmail/apache.conf
fi
if [ -d /etc/httpd/webapps.d ]; then
cp -f /etc/webapps/sqwebmail/httpd.conf{,.rpmnew}
cp -f /etc/sqwebmail/apache-sqwebmail.conf.rpmsave /etc/webapps/sqwebmail/httpd.conf
fi
rm -f /etc/sqwebmail/apache-sqwebmail.conf.rpmsave
fi
if [ -L /etc/apache/conf.d/99_sqwebmail.conf ]; then
rm -f /etc/apache/conf.d/99_sqwebmail.conf
apache_reload=1
fi
if [ -L /etc/httpd/httpd.conf/99_sqwebmail.conf ]; then
rm -f /etc/httpd/httpd.conf/99_sqwebmail.conf
httpd_reload=1
fi
if [ "$httpd_reload" ]; then
/usr/sbin/webapp register httpd sqwebmail
{
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 || :;
else
echo 'Run "/sbin/service httpd start" to start httpd service.'
fi
fi };fi
if [ "$apache_reload" ]; then
/usr/sbin/webapp register apache sqwebmail
{
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 || :;
else
echo 'Run "/sbin/service apache start" to start apache service.'
fi
fi };fi
apache <
2.2.0
/bin/sh
if [ "$1" = "1" ] && [ "$2" = "1" ]; then
/usr/sbin/webapp register apache sqwebmail
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/apache/webapps.d/sqwebmail.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/sqwebmail.conf ]; then
/usr/sbin/webapp unregister apache sqwebmail
{
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
sqwebmail <
5.0.4-1.1
/bin/sh
if [ "$1" = "1" ] && [ "$2" = "1" ]; then
/usr/sbin/webapp register httpd sqwebmail
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/httpd/webapps.d/sqwebmail.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/sqwebmail.conf ]; then
/usr/sbin/webapp unregister httpd sqwebmail
{
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
# rescue app configs
for i in ldapaddressbook sqwebmaild; do
if [ -f /etc/sqwebmail/$i.rpmsave ]; then
mv -f /etc/webapps/sqwebmail/$i{,.rpmnew}
mv -f /etc/sqwebmail/$i.rpmsave /etc/webapps/sqwebmail/$i
fi
done
if [ -f /etc/sqwebmail/apache-sqwebmail.conf.rpmsave ]; then
if [ -d /etc/apache/webapps.d ]; then
cp -f /etc/webapps/sqwebmail/apache.conf{,.rpmnew}
cp -f /etc/sqwebmail/apache-sqwebmail.conf.rpmsave /etc/webapps/sqwebmail/apache.conf
fi
if [ -d /etc/httpd/webapps.d ]; then
cp -f /etc/webapps/sqwebmail/httpd.conf{,.rpmnew}
cp -f /etc/sqwebmail/apache-sqwebmail.conf.rpmsave /etc/webapps/sqwebmail/httpd.conf
fi
rm -f /etc/sqwebmail/apache-sqwebmail.conf.rpmsave
fi
if [ -L /etc/apache/conf.d/99_sqwebmail.conf ]; then
rm -f /etc/apache/conf.d/99_sqwebmail.conf
apache_reload=1
fi
if [ -L /etc/httpd/httpd.conf/99_sqwebmail.conf ]; then
rm -f /etc/httpd/httpd.conf/99_sqwebmail.conf
httpd_reload=1
fi
if [ "$httpd_reload" ]; then
/usr/sbin/webapp register httpd sqwebmail
{
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 || :;
else
echo 'Run "/sbin/service httpd start" to start httpd service.'
fi
fi };fi
if [ "$apache_reload" ]; then
/usr/sbin/webapp register apache sqwebmail
{
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 || :;
else
echo 'Run "/sbin/service apache start" to start apache service.'
fi
fi };fi
apache1 <
1.3.37-3
/bin/sh
if [ "$1" = "1" ] && [ "$2" = "1" ]; then
/usr/sbin/webapp register apache sqwebmail
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/apache/webapps.d/sqwebmail.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/sqwebmail.conf ]; then
/usr/sbin/webapp unregister apache sqwebmail
{
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 sqwebmail
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/httpd/webapps.d/sqwebmail.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/sqwebmail.conf ]; then
/usr/sbin/webapp unregister httpd sqwebmail
{
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
# rescue app configs
for i in ldapaddressbook sqwebmaild; do
if [ -f /etc/sqwebmail/$i.rpmsave ]; then
mv -f /etc/webapps/sqwebmail/$i{,.rpmnew}
mv -f /etc/sqwebmail/$i.rpmsave /etc/webapps/sqwebmail/$i
fi
done
if [ -f /etc/sqwebmail/apache-sqwebmail.conf.rpmsave ]; then
if [ -d /etc/apache/webapps.d ]; then
cp -f /etc/webapps/sqwebmail/apache.conf{,.rpmnew}
cp -f /etc/sqwebmail/apache-sqwebmail.conf.rpmsave /etc/webapps/sqwebmail/apache.conf
fi
if [ -d /etc/httpd/webapps.d ]; then
cp -f /etc/webapps/sqwebmail/httpd.conf{,.rpmnew}
cp -f /etc/sqwebmail/apache-sqwebmail.conf.rpmsave /etc/webapps/sqwebmail/httpd.conf
fi
rm -f /etc/sqwebmail/apache-sqwebmail.conf.rpmsave
fi
if [ -L /etc/apache/conf.d/99_sqwebmail.conf ]; then
rm -f /etc/apache/conf.d/99_sqwebmail.conf
apache_reload=1
fi
if [ -L /etc/httpd/httpd.conf/99_sqwebmail.conf ]; then
rm -f /etc/httpd/httpd.conf/99_sqwebmail.conf
httpd_reload=1
fi
if [ "$httpd_reload" ]; then
/usr/sbin/webapp register httpd sqwebmail
{
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 || :;
else
echo 'Run "/sbin/service httpd start" to start httpd service.'
fi
fi };fi
if [ "$apache_reload" ]; then
/usr/sbin/webapp register apache sqwebmail
{
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 || :;
else
echo 'Run "/sbin/service apache start" to start apache service.'
fi
fi };fi
apache-base
/bin/sh
if [ "$1" = "1" ] && [ "$2" = "1" ]; then
/usr/sbin/webapp register apache sqwebmail
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/apache/webapps.d/sqwebmail.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
sqwebmail <
5.0.4-1.1
/bin/sh
# remove link if either of the packages are gone
if [ -n "" ] || [ "$1" = "0" ] || [ "$2" = "0" ] && [ -L /etc/apache/webapps.d/sqwebmail.conf ]; then
/usr/sbin/webapp unregister apache sqwebmail
{
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 sqwebmail
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/httpd/webapps.d/sqwebmail.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/sqwebmail.conf ]; then
/usr/sbin/webapp unregister httpd sqwebmail
{
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
# rescue app configs
for i in ldapaddressbook sqwebmaild; do
if [ -f /etc/sqwebmail/$i.rpmsave ]; then
mv -f /etc/webapps/sqwebmail/$i{,.rpmnew}
mv -f /etc/sqwebmail/$i.rpmsave /etc/webapps/sqwebmail/$i
fi
done
if [ -f /etc/sqwebmail/apache-sqwebmail.conf.rpmsave ]; then
if [ -d /etc/apache/webapps.d ]; then
cp -f /etc/webapps/sqwebmail/apache.conf{,.rpmnew}
cp -f /etc/sqwebmail/apache-sqwebmail.conf.rpmsave /etc/webapps/sqwebmail/apache.conf
fi
if [ -d /etc/httpd/webapps.d ]; then
cp -f /etc/webapps/sqwebmail/httpd.conf{,.rpmnew}
cp -f /etc/sqwebmail/apache-sqwebmail.conf.rpmsave /etc/webapps/sqwebmail/httpd.conf
fi
rm -f /etc/sqwebmail/apache-sqwebmail.conf.rpmsave
fi
if [ -L /etc/apache/conf.d/99_sqwebmail.conf ]; then
rm -f /etc/apache/conf.d/99_sqwebmail.conf
apache_reload=1
fi
if [ -L /etc/httpd/httpd.conf/99_sqwebmail.conf ]; then
rm -f /etc/httpd/httpd.conf/99_sqwebmail.conf
httpd_reload=1
fi
if [ "$httpd_reload" ]; then
/usr/sbin/webapp register httpd sqwebmail
{
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 || :;
else
echo 'Run "/sbin/service httpd start" to start httpd service.'
fi
fi };fi
if [ "$apache_reload" ]; then
/usr/sbin/webapp register apache sqwebmail
{
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 || :;
else
echo 'Run "/sbin/service apache start" to start apache service.'
fi
fi };fi
apache1-base
/bin/sh
if [ "$1" = "1" ] && [ "$2" = "1" ]; then
/usr/sbin/webapp register apache sqwebmail
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/apache/webapps.d/sqwebmail.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/sqwebmail.conf ]; then
/usr/sbin/webapp unregister apache sqwebmail
{
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 sqwebmail
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/httpd/webapps.d/sqwebmail.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/sqwebmail.conf ]; then
/usr/sbin/webapp unregister httpd sqwebmail
{
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
# rescue app configs
for i in ldapaddressbook sqwebmaild; do
if [ -f /etc/sqwebmail/$i.rpmsave ]; then
mv -f /etc/webapps/sqwebmail/$i{,.rpmnew}
mv -f /etc/sqwebmail/$i.rpmsave /etc/webapps/sqwebmail/$i
fi
done
if [ -f /etc/sqwebmail/apache-sqwebmail.conf.rpmsave ]; then
if [ -d /etc/apache/webapps.d ]; then
cp -f /etc/webapps/sqwebmail/apache.conf{,.rpmnew}
cp -f /etc/sqwebmail/apache-sqwebmail.conf.rpmsave /etc/webapps/sqwebmail/apache.conf
fi
if [ -d /etc/httpd/webapps.d ]; then
cp -f /etc/webapps/sqwebmail/httpd.conf{,.rpmnew}
cp -f /etc/sqwebmail/apache-sqwebmail.conf.rpmsave /etc/webapps/sqwebmail/httpd.conf
fi
rm -f /etc/sqwebmail/apache-sqwebmail.conf.rpmsave
fi
if [ -L /etc/apache/conf.d/99_sqwebmail.conf ]; then
rm -f /etc/apache/conf.d/99_sqwebmail.conf
apache_reload=1
fi
if [ -L /etc/httpd/httpd.conf/99_sqwebmail.conf ]; then
rm -f /etc/httpd/httpd.conf/99_sqwebmail.conf
httpd_reload=1
fi
if [ "$httpd_reload" ]; then
/usr/sbin/webapp register httpd sqwebmail
{
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 || :;
else
echo 'Run "/sbin/service httpd start" to start httpd service.'
fi
fi };fi
if [ "$apache_reload" ]; then
/usr/sbin/webapp register apache sqwebmail
{
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 || :;
else
echo 'Run "/sbin/service apache start" to start apache service.'
fi
fi };fi
sqwebmail <
5.0.4-1.1
/bin/sh
if [ "$1" = "1" ] && [ "$2" = "1" ]; then
/usr/sbin/webapp register apache sqwebmail
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/apache/webapps.d/sqwebmail.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/sqwebmail.conf ]; then
/usr/sbin/webapp unregister apache sqwebmail
{
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 sqwebmail
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/httpd/webapps.d/sqwebmail.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/sqwebmail.conf ]; then
/usr/sbin/webapp unregister httpd sqwebmail
{
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
# rescue app configs
for i in ldapaddressbook sqwebmaild; do
if [ -f /etc/sqwebmail/$i.rpmsave ]; then
mv -f /etc/webapps/sqwebmail/$i{,.rpmnew}
mv -f /etc/sqwebmail/$i.rpmsave /etc/webapps/sqwebmail/$i
fi
done
if [ -f /etc/sqwebmail/apache-sqwebmail.conf.rpmsave ]; then
if [ -d /etc/apache/webapps.d ]; then
cp -f /etc/webapps/sqwebmail/apache.conf{,.rpmnew}
cp -f /etc/sqwebmail/apache-sqwebmail.conf.rpmsave /etc/webapps/sqwebmail/apache.conf
fi
if [ -d /etc/httpd/webapps.d ]; then
cp -f /etc/webapps/sqwebmail/httpd.conf{,.rpmnew}
cp -f /etc/sqwebmail/apache-sqwebmail.conf.rpmsave /etc/webapps/sqwebmail/httpd.conf
fi
rm -f /etc/sqwebmail/apache-sqwebmail.conf.rpmsave
fi
if [ -L /etc/apache/conf.d/99_sqwebmail.conf ]; then
rm -f /etc/apache/conf.d/99_sqwebmail.conf
apache_reload=1
fi
if [ -L /etc/httpd/httpd.conf/99_sqwebmail.conf ]; then
rm -f /etc/httpd/httpd.conf/99_sqwebmail.conf
httpd_reload=1
fi
if [ "$httpd_reload" ]; then
/usr/sbin/webapp register httpd sqwebmail
{
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 || :;
else
echo 'Run "/sbin/service httpd start" to start httpd service.'
fi
fi };fi
if [ "$apache_reload" ]; then
/usr/sbin/webapp register apache sqwebmail
{
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 || :;
else
echo 'Run "/sbin/service apache start" to start apache service.'
fi
fi };fi
apache <
2.2.0
/bin/sh
if [ "$1" = "1" ] && [ "$2" = "1" ]; then
/usr/sbin/webapp register apache sqwebmail
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/apache/webapps.d/sqwebmail.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/sqwebmail.conf ]; then
/usr/sbin/webapp unregister apache sqwebmail
{
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 sqwebmail
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/httpd/webapps.d/sqwebmail.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/sqwebmail.conf ]; then
/usr/sbin/webapp unregister httpd sqwebmail
{
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
sqwebmail <
5.0.4-1.1
/bin/sh
# rescue app configs
for i in ldapaddressbook sqwebmaild; do
if [ -f /etc/sqwebmail/$i.rpmsave ]; then
mv -f /etc/webapps/sqwebmail/$i{,.rpmnew}
mv -f /etc/sqwebmail/$i.rpmsave /etc/webapps/sqwebmail/$i
fi
done
if [ -f /etc/sqwebmail/apache-sqwebmail.conf.rpmsave ]; then
if [ -d /etc/apache/webapps.d ]; then
cp -f /etc/webapps/sqwebmail/apache.conf{,.rpmnew}
cp -f /etc/sqwebmail/apache-sqwebmail.conf.rpmsave /etc/webapps/sqwebmail/apache.conf
fi
if [ -d /etc/httpd/webapps.d ]; then
cp -f /etc/webapps/sqwebmail/httpd.conf{,.rpmnew}
cp -f /etc/sqwebmail/apache-sqwebmail.conf.rpmsave /etc/webapps/sqwebmail/httpd.conf
fi
rm -f /etc/sqwebmail/apache-sqwebmail.conf.rpmsave
fi
if [ -L /etc/apache/conf.d/99_sqwebmail.conf ]; then
rm -f /etc/apache/conf.d/99_sqwebmail.conf
apache_reload=1
fi
if [ -L /etc/httpd/httpd.conf/99_sqwebmail.conf ]; then
rm -f /etc/httpd/httpd.conf/99_sqwebmail.conf
httpd_reload=1
fi
if [ "$httpd_reload" ]; then
/usr/sbin/webapp register httpd sqwebmail
{
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 || :;
else
echo 'Run "/sbin/service httpd start" to start httpd service.'
fi
fi };fi
if [ "$apache_reload" ]; then
/usr/sbin/webapp register apache sqwebmail
{
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 || :;
else
echo 'Run "/sbin/service apache start" to start apache service.'
fi
fi };fi