POSTIN
/bin/sh
grep -i 'Include.*imp.conf$' /etc/httpd/conf/httpd.conf >/dev/null 2>&1
if [ $? -eq 0 ]; then
perl -pi -e 's/^#+// if (/Include.*imp.conf$/i);' /etc/httpd/conf/httpd.conf
else
echo "Include conf/imp.conf" >>/etc/httpd/conf/httpd.conf
fi
/sbin/service httpd restart
sleep 1 # settling time vs. installing multiple RPMs at a time
( cd /var/www/html/horde; sh install.sh; sh secure.sh )
#cat <<_EOF2_
#
#IMPORTANT: If you are installing for the first time, you must now
#configure IMP. The following commands (run as root) will do this:
#
## cd /var/www/html/horde
## sh install.sh
#(visit http://example.com/horde/setup.php3 in a browser)
## sh secure.sh
#
#If you are using a database, you also need to set the database password:
#
## sh scripts/database/dbpasswd.sh
#
#(See /var/www/html/horde/imp/docs/INSTALL for more information.)
#
#_EOF2_
POSTUN
/bin/sh
if [ $1 -eq 0 ]; then
perl -pi -e 's/^/#/ if (/^Include.*imp.conf$/i);' /etc/httpd/conf/httpd.conf
/sbin/service httpd restart
sleep 1 # settling time vs. installing multiple RPMs at a time
fi