Comparison

prosodyctl @ 5141:9ca67015ba0e

prosodyctl: Fix copypaste error
author Kim Alvefur <zash@zash.se>
date Wed, 19 Sep 2012 23:29:25 +0200
parent 5140:5b600514f654
child 5143:a86efd60425f
comparison
equal deleted inserted replaced
5140:5b600514f654 5141:9ca67015ba0e
722 722
723 function cert_commands.generate(arg) 723 function cert_commands.generate(arg)
724 if #arg >= 1 and arg[1] ~= "--help" then 724 if #arg >= 1 and arg[1] ~= "--help" then
725 local cert_filename = (CFG_DATADIR or ".") .. "/" .. arg[1] .. ".cert"; 725 local cert_filename = (CFG_DATADIR or ".") .. "/" .. arg[1] .. ".cert";
726 if ask_overwrite(cert_filename) then 726 if ask_overwrite(cert_filename) then
727 return nil, conf_filename; 727 return nil, cert_filename;
728 end 728 end
729 local _, key_filename = cert_commands.key({arg[1]}); 729 local _, key_filename = cert_commands.key({arg[1]});
730 local _, conf_filename = cert_commands.config(arg); 730 local _, conf_filename = cert_commands.config(arg);
731 local ret; 731 local ret;
732 if key_filename and conf_filename and cert_filename 732 if key_filename and conf_filename and cert_filename