aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2010-02-05 13:52:01 +0000
committerMatthew Wild <mwild1@gmail.com>2010-02-05 13:52:01 +0000
commitb091201f79ebb0dcdd5b36a956cb6001bbe20f18 (patch)
tree548798f8c765e08afb73304e9bf0860573865553 /util
parent4ee9b095ddec7d5dfb50afe36ae320741c979446 (diff)
downloadprosody-b091201f79ebb0dcdd5b36a956cb6001bbe20f18.tar.gz
prosody-b091201f79ebb0dcdd5b36a956cb6001bbe20f18.zip
util.dependencies: Don't query the config (it isn't really necessary)
Diffstat (limited to 'util')
-rw-r--r--util/dependencies.lua14
1 files changed, 5 insertions, 9 deletions
diff --git a/util/dependencies.lua b/util/dependencies.lua
index 72a7cafe..baa0cee2 100644
--- a/util/dependencies.lua
+++ b/util/dependencies.lua
@@ -73,15 +73,11 @@ function check_dependencies()
local ssl = softreq "ssl"
if not ssl then
- if config.get("*", "core", "run_without_ssl") then
- log("warn", "Running without SSL support because run_without_ssl is defined in the config");
- else
- missingdep("LuaSec", {
- ["Debian/Ubuntu"] = "http://prosody.im/download/start#debian_and_ubuntu";
- ["luarocks"] = "luarocks install luasec";
- ["Source"] = "http://www.inf.puc-rio.br/~brunoos/luasec/";
- }, "SSL/TLS support will not be available");
- end
+ missingdep("LuaSec", {
+ ["Debian/Ubuntu"] = "http://prosody.im/download/start#debian_and_ubuntu";
+ ["luarocks"] = "luarocks install luasec";
+ ["Source"] = "http://www.inf.puc-rio.br/~brunoos/luasec/";
+ }, "SSL/TLS support will not be available");
else
local major, minor, veryminor, patched = ssl._VERSION:match("(%d+)%.(%d+)%.?(%d*)(M?)");
if not major or ((tonumber(major) == 0 and (tonumber(minor) or 0) <= 3 and (tonumber(veryminor) or 0) <= 2) and patched ~= "M") then