Sophie

Sophie

distrib > Mandriva > 2006.0 > x86_64 > media > contrib > by-pkgid > 7e9de3d7ae3df87ff3179bca38b3db1e > scriptlet

flyspray-0.9.5-3mdk.noarch.rpm

POSTIN

/bin/sh
if [ "$1" = "1" ]; then /sbin/service httpd condrestart; fi 

if [ "$1" = 1 ]; then
	cookie=`head /dev/urandom | md5sum | cut -b 1-16 `
	perl -pi -e "s#\\\$cookiesalt = .*#\\\$cookiesalt = '$cookie';#" /etc/flyspray/header.php
fi

POSTUN

/bin/sh
if [ "$1" = "0" ]; then /sbin/service httpd condrestart; else /sbin/service httpd condreload; fi