Browse Source

Bug 13143 - follow up - usability improvements

* makes sure output is not on the line with the prompt
* adds ability to clear screen after password display

Same test plan as for original bug.

Signed-off-by: Mark Tompsett <mtompset@hotmail.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Brendan A Gallagher <brendan@bywatersolutions.com>
new_12478_elasticsearch
Liz Rea 10 years ago
committed by Brendan A Gallagher
parent
commit
2b43e9312c
  1. 6
      debian/scripts/koha-passwd

6
debian/scripts/koha-passwd

@ -45,7 +45,11 @@ EOF
for name in "$@"
do
if is_instance $name ; then
xmlstarlet sel -t -v 'yazgfs/config/pass' /etc/koha/sites/$name/koha-conf.xml
passwd=$(xmlstarlet sel -t -v 'yazgfs/config/pass' /etc/koha/sites/$name/koha-conf.xml);
echo "Password for $name: $passwd"
echo "Press any key to clear the screen..."
read anykey
clear
else
warn "Unknown instance $name."
fi

Loading…
Cancel
Save