From c4a1ba4261398d95512f3e1eda3cf99e64f0bc19 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 8 Jun 2020 11:45:40 +0200 Subject: [PATCH] Bug 25622: use -r paramter to blacklist some special chars --- debian/scripts/koha-create | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/debian/scripts/koha-create b/debian/scripts/koha-create index 3be332fce4..9044c01afb 100755 --- a/debian/scripts/koha-create +++ b/debian/scripts/koha-create @@ -595,8 +595,7 @@ then # over-size, so when problematic chars are removed, # still likely 16 characters left. # Removing : ' & \ < > / - mysqlpwd="$(pwgen -s -y 32 1)" - mysqlpwd="$(echo $mysqlpwd | tr -d :\'\&\\\\\<\>\/ | cut -c1-16)" + mysqlpwd="$(pwgen -s -y -r ":'&\\<>/" 16 1)" fi else -- 2.20.1