diff options
author | Matthew Wild <mwild1@gmail.com> | 2013-04-29 10:52:23 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2013-04-29 10:52:23 +0100 |
commit | 48975e12f4825384c05e8c241ea9089c61dcc4d9 (patch) | |
tree | e8a0c90000f96854c20eddf617b4d3ef09dc8370 /prosodyctl | |
parent | 12fb3f5f9c11f5859c49abf03b6437e0c8400c6b (diff) | |
parent | f4c5df10ba8322b5571c2fcf7eca33af988c98e5 (diff) | |
download | prosody-48975e12f4825384c05e8c241ea9089c61dcc4d9.tar.gz prosody-48975e12f4825384c05e8c241ea9089c61dcc4d9.zip |
Merge with Florob
Diffstat (limited to 'prosodyctl')
-rwxr-xr-x | prosodyctl | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -654,7 +654,7 @@ end function cert_commands.config(arg) if #arg >= 1 and arg[1] ~= "--help" then - local conf_filename = (CFG_DATADIR or ".") .. "/" .. arg[1] .. ".cnf"; + local conf_filename = (CFG_DATADIR or "./certs") .. "/" .. arg[1] .. ".cnf"; if ask_overwrite(conf_filename) then return nil, conf_filename; end @@ -687,7 +687,7 @@ end function cert_commands.key(arg) if #arg >= 1 and arg[1] ~= "--help" then - local key_filename = (CFG_DATADIR or ".") .. "/" .. arg[1] .. ".key"; + local key_filename = (CFG_DATADIR or "./certs") .. "/" .. arg[1] .. ".key"; if ask_overwrite(key_filename) then return nil, key_filename; end @@ -709,7 +709,7 @@ end function cert_commands.request(arg) if #arg >= 1 and arg[1] ~= "--help" then - local req_filename = (CFG_DATADIR or ".") .. "/" .. arg[1] .. ".req"; + local req_filename = (CFG_DATADIR or "./certs") .. "/" .. arg[1] .. ".req"; if ask_overwrite(req_filename) then return nil, req_filename; end @@ -727,7 +727,7 @@ end function cert_commands.generate(arg) if #arg >= 1 and arg[1] ~= "--help" then - local cert_filename = (CFG_DATADIR or ".") .. "/" .. arg[1] .. ".crt"; + local cert_filename = (CFG_DATADIR or "./certs") .. "/" .. arg[1] .. ".crt"; if ask_overwrite(cert_filename) then return nil, cert_filename; end |