From ba51185fbd00591a72af41782ba2d6fd956b731a Mon Sep 17 00:00:00 2001 From: Mason James Date: Wed, 21 Sep 2022 23:38:59 +1200 Subject: [PATCH] Bug 28493: Make koha-passwd display the username to test... 1/ run command $ sudo koha-passwd dev1 Password for dev1: CraZyPa$$WoRD!! Press enter to clear the screen... ^C 2/ apply patch 3/ run command again, note 'username' section $ sudo koha-passwd dev1 Username for dev1: koha_dev1 <<<<<<<<<<<< Password for dev1: CraZyPa$$WoRD!! Press enter to clear the screen... ^C Signed-off-by: David Nind Signed-off-by: Jonathan Druart Signed-off-by: Tomas Cohen Arazi (cherry picked from commit 4ce7f8c49378c0e32212493779b07e3ab369dee7) Signed-off-by: Fridolin Somers --- debian/scripts/koha-passwd | 2 ++ 1 file changed, 2 insertions(+) diff --git a/debian/scripts/koha-passwd b/debian/scripts/koha-passwd index 5be04b40d3..9c050398a3 100755 --- a/debian/scripts/koha-passwd +++ b/debian/scripts/koha-passwd @@ -45,8 +45,10 @@ EOF for name in "$@" do if is_instance $name ; then + user=$(xmlstarlet sel -t -v 'yazgfs/config/user' /etc/koha/sites/$name/koha-conf.xml); passwd=$(xmlstarlet sel -t -v 'yazgfs/config/pass' /etc/koha/sites/$name/koha-conf.xml); if [ -t 1 ]; then + echo "Username for $name: $user" echo "Password for $name: $passwd" echo "Press enter to clear the screen..." read anykey -- 2.20.1