Software /
code /
prosody
Diff
core/certmanager.lua @ 6076:e0713386319a
certmanager: Wrap long line and add comment
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 14 Apr 2014 23:41:26 +0200 |
parent | 6075:524060125f9c |
child | 6077:6999d4415a58 |
line wrap: on
line diff
--- a/core/certmanager.lua Mon Apr 14 23:34:35 2014 +0200 +++ b/core/certmanager.lua Mon Apr 14 23:41:26 2014 +0200 @@ -81,7 +81,11 @@ user_ssl_config[option] = default_value; end end - user_ssl_config.password = user_ssl_config.password or function() log("error", "Encrypted certificate for %s requires 'ssl' 'password' to be set in config", host); end; + + -- We can't read the password interactively when daemonized + user_ssl_config.password = user_ssl_config.password or + function() log("error", "Encrypted certificate for %s requires 'ssl' 'password' to be set in config", host); end; + for option in pairs(path_options) do if type(user_ssl_config[option]) == "string" then user_ssl_config[option] = resolve_path(config_path, user_ssl_config[option]);