]> git.koha-community.org Git - koha.git/commit
Bug 13143 - Add a tool to show a Koha's password
authorMason James <mtj@kohaaloha.com>
Fri, 24 Oct 2014 18:03:31 +0000 (07:03 +1300)
committerBrendan A Gallagher <brendan@bywatersolutions.com>
Wed, 27 Jan 2016 06:27:07 +0000 (06:27 +0000)
commit78a6f7b0e7ae14ac17196222f373111246f1121b
tree073d176c2afd2a5f5bf95150c308fbea2c08e21b
parentb3353994af759a7e6b03c63ceef801616b61a72f
 Bug 13143 - Add a tool to show a Koha's password

to test...

1/ run without any args, and get some help
 # koha-passwd
Displays a Koha instance's password.

Usage: /usr/sbin/koha-passwd instancename1 instancename2...

Missing instance name...

2/ run with a bad instance, get an error
 # koha-passwd xxxxx
Unknown instance xxxxx

3/ run with a correct instance, get a password
 # koha-passwd koha1
foofoo69

4/ run with many instances, get many passwords
 # koha-passwd koha1 koha2 koha3
foofoo69
foofoo68
foofoo67

Signed-off-by: Mason James <mtj@kohaaloha.com>
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/koha-common.install
debian/scripts/koha-passwd [new file with mode: 0755]