1 2 3 4 5 6 7 8 9
if grep -q "blowfish_secret'\] = ''" /var/www/webapps/phpMyAdmin/config.inc.php ; then echo "Generating new blowfish secret to /var/www/webapps/phpMyAdmin/config.inc.php" /usr/bin/subst "s|\(blowfish_secret'\] = \)''|\1'$(pwgen -0s1 32)'|" /var/www/webapps/phpMyAdmin/config.inc.php fi #pre apache2 #pre_control phpMyAdmin-apache2 #post apache2 #post_control -s restricted phpMyAdmin-apache2