Sophie

Sophie

distrib > Mageia > 6 > x86_64 > media > core-updates > by-pkgid > 015a4b3aa9d159e437a9d20f67d829f1 > scriptlet

phpmyadmin-4.7.8-3.mga6.noarch.rpm

POSTIN

/bin/sh
# generate random secret
secret=$(/usr/share/rpm-helper/get-password 46)

# blowfish secret
perl -pi \
    -e "s|\\\$cfg\\['blowfish_secret'\\] = ''|\\\$cfg\\['blowfish_secret'\\] = '$secret'|" \
    /etc/phpmyadmin/config.inc.php