projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
59675c6
)
prosodyctl: Load LFS and util.openssl when actually needed (fixes unhelpful warnings...
author
Kim Alvefur
<zash@zash.se>
Tue, 8 Jan 2013 12:33:35 +0000
(13:33 +0100)
committer
Kim Alvefur
<zash@zash.se>
Tue, 8 Jan 2013 12:33:35 +0000
(13:33 +0100)
prosodyctl
patch
|
blob
|
history
diff --git
a/prosodyctl
b/prosodyctl
index 4d3c47908e864f60ed7bba4e0456d5cf994f48fb..97232e5c365838f263fba62a63004dff6c960d98 100755
(executable)
--- a/
prosodyctl
+++ b/
prosodyctl
@@
-639,8
+639,8
@@
function commands.unregister(arg)
return 1;
end
-local openssl
= require "util.openssl"
;
-local lfs
= require "lfs"
;
+local openssl;
+local lfs;
local cert_commands = {};
@@
-744,6
+744,8
@@
end
function commands.cert(arg)
if #arg >= 1 and arg[1] ~= "--help" then
+ openssl = require "util.openssl";
+ lfs = require "lfs";
local subcmd = table.remove(arg, 1);
if type(cert_commands[subcmd]) == "function" then
if not arg[1] then