Sophie

Sophie

distrib > Mandriva > 2007.1 > x86_64 > media > contrib-release > by-pkgid > 09c92bddaa90ed18a7fdd269cf6e5ca0 > scriptlet

phpmyadmin-2.10.0.2-2mdv2007.1.noarch.rpm

POSTIN

/bin/sh

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