diff --git a/doc/rpm-build/post_install.php b/doc/rpm-build/post_install.php index 7a9c6bb037..bcd5ca27c4 100755 --- a/doc/rpm-build/post_install.php +++ b/doc/rpm-build/post_install.php @@ -234,6 +234,12 @@ while(($arg = array_shift($argv))) { $config[$name] = array_shift($argv); + // replace empty pw with a random one + if ($name === 'db_pass' && $config[$name] === '') + { + $config[$name] = randomstring(); + } + switch($name) { case 'auth_type':