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