Software /
code /
prosody
Comparison
prosodyctl @ 5152:fee5f8d4ec74
prosodyctl: Fix copypaste error
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 19 Sep 2012 23:29:25 +0200 |
parent | 5151:dfe6a70efaa2 |
child | 5160:da7fe5de82fb |
child | 5292:46fbb5f1ef0a |
comparison
equal
deleted
inserted
replaced
5151:dfe6a70efaa2 | 5152:fee5f8d4ec74 |
---|---|
723 | 723 |
724 function cert_commands.generate(arg) | 724 function cert_commands.generate(arg) |
725 if #arg >= 1 and arg[1] ~= "--help" then | 725 if #arg >= 1 and arg[1] ~= "--help" then |
726 local cert_filename = (CFG_DATADIR or ".") .. "/" .. arg[1] .. ".cert"; | 726 local cert_filename = (CFG_DATADIR or ".") .. "/" .. arg[1] .. ".cert"; |
727 if ask_overwrite(cert_filename) then | 727 if ask_overwrite(cert_filename) then |
728 return nil, conf_filename; | 728 return nil, cert_filename; |
729 end | 729 end |
730 local _, key_filename = cert_commands.key({arg[1]}); | 730 local _, key_filename = cert_commands.key({arg[1]}); |
731 local _, conf_filename = cert_commands.config(arg); | 731 local _, conf_filename = cert_commands.config(arg); |
732 local ret; | 732 local ret; |
733 if key_filename and conf_filename and cert_filename | 733 if key_filename and conf_filename and cert_filename |