diff options
author | Kim Alvefur <zash@zash.se> | 2013-04-28 16:22:01 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2013-04-28 16:22:01 +0200 |
commit | 17d2042311558842f5710eaa2439253a2e4d0af8 (patch) | |
tree | 34c04a8fb1e22863e654ae921361cfdbe813e753 | |
parent | e0eed7d73c5876f35ecbadcae3ca7e2742ece08c (diff) | |
download | prosody-17d2042311558842f5710eaa2439253a2e4d0af8.tar.gz prosody-17d2042311558842f5710eaa2439253a2e4d0af8.zip |
prosodyctl: Put keys and certificates in ./certs when in a source checkout
-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 |