PREUN
/bin/sh
if [ "$1" = "0" ]; then
umask 027
if [ -d /etc/httpd/httpd.conf ]; then
rm -f /etc/httpd/httpd.conf/99_netmrg.conf
else
grep -v "^Include.*netmrg.conf" /etc/httpd/httpd.conf > \
etc/httpd/httpd.conf.tmp
mv -f /etc/httpd/httpd.conf.tmp /etc/httpd/httpd.conf
{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd reload 1>&2 || :;
else
echo 'Run "/sbin/service httpd start" to start httpd service.'
fi
fi }; fi
fi
POSTIN
/bin/sh
if [ -f /etc/httpd/httpd.conf ] && ! grep -q "^Include.*netmrg.conf" /etc/httpd/httpd.conf; then
echo "Include /etc/httpd/netmrg.conf" >> /etc/httpd/httpd.conf
elif [ -d /etc/httpd/httpd.conf ]; then
mv -f /etc/httpd/netmrg.conf /etc/httpd/httpd.conf/99_netmrg.conf
fi
{
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 };{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/crond ] && . /etc/sysconfig/crond
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/crond ]; then
/sbin/service crond restart 1>&2 || :;
else
echo 'Run "/sbin/service crond start" to start crond service.'
fi
fi };if [ -f /var/lock/subsys/crond ]; then
/etc/rc.d/init.d/crond restart 1>&2
fi
echo "Before first run read /usr/share/doc/netmrg-0.19/INSTALL how to put
/usr/share/netmrg/db/netmrg.mysql in your mysql server"