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>
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'])
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.