Sophie

Sophie

distrib > Mandriva > 2007.0 > i586 > media > contrib-release > by-pkgid > 16410a2f9ac9a818005365e76af4a40f > scriptlet

phpMyAdmin-2.8.2.2-2mdv2007.0.noarch.rpm

POSTIN

/bin/sh
ccp --delete --ifexists --set "NoOrphans" --ignoreopt config_version --oldfile /etc/phpMyAdmin/config.default.php --newfile /etc/phpMyAdmin/config.default.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/phpMyAdmin/config.default.php

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

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

if [ -x /usr/bin/update-desktop-database ]; then 
/usr/bin/update-desktop-database /usr/share/applications > /dev/null || 
true ; fi

POSTUN

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

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

if [ "$1" = "0" -a -x /usr/bin/update-desktop-database ]; then 
/usr/bin/update-desktop-database /usr/share/applications > /dev/null || true ; fi