PREIN
/bin/sh
/usr/share/rpm-helper/add-user netdisco $1 netdisco /var/www/netdisco /bin/sh
# apache needs to read /etc/netdisco.conf, but it contains a plain
# text password to the postgresql netdisco database, so the file
# requires stricter file permissions...
/usr/bin/gpasswd -a apache netdisco
PREUN
/bin/sh
/usr/share/rpm-helper/del-service netdisco $1 netdisco
POSTIN
/bin/sh
/usr/share/rpm-helper/add-webapp netdisco $1
/usr/share/rpm-helper/create-file netdisco $1 /var/www/netdisco/html/netmap.gif netdisco netdisco 644
/usr/share/rpm-helper/create-file netdisco $1 /var/www/netdisco/html/netmap.map netdisco netdisco 644
/usr/share/rpm-helper/add-service netdisco $1 netdisco
if [ -f /var/lock/subsys/netdisco ]; then
/etc/rc.d/init.d/netdisco restart 1>&2;
fi
POSTUN
/bin/sh
/usr/share/rpm-helper/del-webapp netdisco $1
if [ "$1" = "0" ]; then
# remove the crontab for netdisco
crontab -r -u netdisco
fi
/usr/share/rpm-helper/del-user netdisco $1 netdisco