Sophie

Sophie

distrib > Mandriva > 2007.0 > i586 > by-pkgid > 6f155ada691a5badb65d057e0b030969 > scriptlet

phpLDAPAdmin-1.0.1-1mdv2007.0.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