Bug 13143 - follow up - usability improvements
authorLiz Rea <liz@catalyst.net.nz>
Fri, 31 Oct 2014 03:34:31 +0000 (16:34 +1300)
committerBrendan A Gallagher <brendan@bywatersolutions.com>
Wed, 27 Jan 2016 06:27:08 +0000 (06:27 +0000)
* 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>

debian/scripts/koha-passwd

index 0cd49aa..1f14e26 100755 (executable)
@@ -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