diff options
author | Kim Alvefur <zash@zash.se> | 2013-01-08 13:33:35 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2013-01-08 13:33:35 +0100 |
commit | 9ae3298c8cdc38bb37a9bcb5d505f4b3dd633949 (patch) | |
tree | e7b257eddb2c261b80d44ceedb2d81495319149d /prosodyctl | |
parent | 77651c4a6ce9de55e7d341d40f5f30e7988efee7 (diff) | |
download | prosody-9ae3298c8cdc38bb37a9bcb5d505f4b3dd633949.tar.gz prosody-9ae3298c8cdc38bb37a9bcb5d505f4b3dd633949.zip |
prosodyctl: Load LFS and util.openssl when actually needed (fixes unhelpful warnings if no LuaSec installed)
Diffstat (limited to 'prosodyctl')
-rwxr-xr-x | prosodyctl | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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 |