Comparison

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
comparison
equal deleted inserted replaced
6075:524060125f9c 6076:e0713386319a
79 for option,default_value in pairs(core_defaults) do 79 for option,default_value in pairs(core_defaults) do
80 if user_ssl_config[option] == nil then 80 if user_ssl_config[option] == nil then
81 user_ssl_config[option] = default_value; 81 user_ssl_config[option] = default_value;
82 end 82 end
83 end 83 end
84 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; 84
85 -- We can't read the password interactively when daemonized
86 user_ssl_config.password = user_ssl_config.password or
87 function() log("error", "Encrypted certificate for %s requires 'ssl' 'password' to be set in config", host); end;
88
85 for option in pairs(path_options) do 89 for option in pairs(path_options) do
86 if type(user_ssl_config[option]) == "string" then 90 if type(user_ssl_config[option]) == "string" then
87 user_ssl_config[option] = resolve_path(config_path, user_ssl_config[option]); 91 user_ssl_config[option] = resolve_path(config_path, user_ssl_config[option]);
88 end 92 end
89 end 93 end