[Koha-bugs] [Bug 13143] Add a tool to show a Koha's password
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu Mar 5 05:59:31 CET 2015
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13143
Robin Sheat <robin at catalyst.net.nz> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|Signed Off |Failed QA
--- Comment #18 from Robin Sheat <robin at catalyst.net.nz> ---
My issue is that the pausing thing means it can't be used within a script.
It shouldn't say "password for x is y", it should just output the password, and
it should only block if it's outputting to a terminal, otherwise it'll block
forever.
A test for this is here:
http://stackoverflow.com/questions/911168/how-to-detect-if-my-shell-script-is-running-through-a-pipe
running koha-passwd instance | cat should output the password and then finish
without issuing a clear or anything. This makes it easy for people who need the
password as part of some other shell script.
Additionally, it'd probably be good (although I wouldn't consider it a blocker)
to make a function in koha-functions.sh to fetch the password and use that,
that way other scripts in the koha-* set can use that (if you're really keen
you can change them to use it, but certainly don't consider than necessary.)
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list