Sophie

Sophie

distrib > Mandriva > 2009.0 > i586 > by-pkgid > cdc922ab1a0ee9712b7d7f9d7260e47a > scriptlet

horde-kronolith-2.2-3mdv2009.0.noarch.rpm

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