Sophie

Sophie

distrib > Mandriva > 2008.1 > x86_64 > media > contrib-release > by-pkgid > ade37fdad73b5fdca73b7e30e343b140 > scriptlet

phpldapadmin-1.1.0.5-1mdv2008.1.noarch.rpm

POSTIN

/bin/sh
ccp --delete --ifexists --set "NoOrphans" --ignoreopt config_version --oldfile /etc/phpldapadmin/config.php --newfile /etc/phpldapadmin/config.php.rpmnew

BLOWFISH=`perl -e 'for ($i = 0, $bit = "!", $key = ""; $i < 8; $i++) {while ($bit !~ /^[0-9A-Za-z]$/) { $bit = chr(rand(90) + 32); } $key .= $bit; $bit = "!"; } print "$key";'`
BLOWFISH=`echo -n $BLOWFISH | md5sum | awk '{print $1}'`
perl -pi -e "s|_BLOWFISH_SECRET_|$BLOWFISH|g" /etc/phpldapadmin/config.php

/usr/share/rpm-helper/add-webapp phpldapadmin $1 

if [ -x /usr/bin/update-menus ]; then /usr/bin/update-menus || true ; fi

POSTUN

/bin/sh
/usr/share/rpm-helper/del-webapp phpldapadmin $1 

if [ "$1" = "0" -a -x /usr/bin/update-menus ]; then /usr/bin/update-menus || true ; fi