From 424c7c3c812ce247336078181b97e6abd8d0fb4c Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Fri, 5 Jul 2019 15:24:33 +0200 Subject: [PATCH] replace empty pw with a random one --- doc/rpm-build/post_install.php | 6 ++++++ 1 file changed, 6 insertions(+) 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':