POSTIN
/bin/sh
if [ $1 = 1 ]; then
# calendar access
mcalpass=`perl -le'print map { (a..z,A..Z,0..9)[rand 62] } 0..pop' 12`
htpasswd -b /etc/mpasswd kronolith "$mcalpass"
perl -pi -e 's|\*\*\*\*|'$mcalpass'|' /etc/horde/kronolith/conf.xml
# configuration
/usr/share/rpm-helper/create-file horde-kronolith $1 /etc/horde/kronolith/conf.php apache apache 644
/usr/share/rpm-helper/create-file horde-kronolith $1 /etc/horde/kronolith/conf.php.bak apache apache 644
fi
POSTUN
/bin/sh
if [ $1 = 0 ]; then
htpasswd -bD /etc/mpasswd kronolith ""
fi