diff options
| author | Rich Megginson <rmeggins@redhat.com> | 2015-06-08 16:22:27 -0600 |
|---|---|---|
| committer | Patrick Uiterwijk <puiterwijk@redhat.com> | 2015-06-09 18:54:02 +0200 |
| commit | 42369d4899ed5e56bd9a0cf1752c3ceb223cab80 (patch) | |
| tree | c02cc2e1c01f7e57a0e9609d93589badc041fc86 | |
| parent | ef45f3deb7b6c8ca4b95f6e027b2bd16a675b598 (diff) | |
| download | ipsilon-42369d4899ed5e56bd9a0cf1752c3ceb223cab80.tar.gz ipsilon-42369d4899ed5e56bd9a0cf1752c3ceb223cab80.tar.xz ipsilon-42369d4899ed5e56bd9a0cf1752c3ceb223cab80.zip | |
ipsilon-client-install give password in env. var.
https://fedorahosted.org/ipsilon/ticket/142
If --admin-password is not given, see if the IPSILON_ADMIN_PASSWORD
environment variable is set, and use it for the admin_password, before
doing getpass().
Signed-off-by: Rich Megginson <rmeggins@redhat.com>
Reviewed-by: Patrick Uiterwijk <puiterwijk@redhat.com>
| -rwxr-xr-x | ipsilon/install/ipsilon-client-install | 3 | ||||
| -rw-r--r-- | man/ipsilon-client-install.1 | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/ipsilon/install/ipsilon-client-install b/ipsilon/install/ipsilon-client-install index 78dfb51..09af718 100755 --- a/ipsilon/install/ipsilon-client-install +++ b/ipsilon/install/ipsilon-client-install @@ -115,6 +115,9 @@ def saml2(): logger.error("Failed to read password file!\n" + "Error: [%s]" % e) raise + elif ('IPSILON_ADMIN_PASSWORD' in os.environ) and \ + (os.environ['IPSILON_ADMIN_PASSWORD']): + admin_password = os.environ['IPSILON_ADMIN_PASSWORD'] else: admin_password = getpass.getpass('%s password: ' % args['admin_user']) diff --git a/man/ipsilon-client-install.1 b/man/ipsilon-client-install.1 index 81fdb3e..886fb48 100644 --- a/man/ipsilon-client-install.1 +++ b/man/ipsilon-client-install.1 @@ -26,7 +26,7 @@ Port number that SP listens on. The default is to not set a specific listen port Account allowed to create a Service Provider (SP). The default is admin. .TP \fB\-\-admin\-password\fR \fIADMIN_PASSWORD\fR -File containing the password for the account used toc reate a SP (\- to read from stdin) +File containing the password for the account used to create a SP (\- to read from stdin). You can also provide the password in the IPSILON_ADMIN_PASSWORD environment variable. .TP \fB\-\-httpd\-user\fR \fIHTTPD_USER\fR Web server account used. Some files created by the installation will be chown(1) to this user. The default is apache. |
