aboutsummaryrefslogtreecommitdiffstats
path: root/prosodyctl
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2010-01-28 14:56:47 +0000
committerMatthew Wild <mwild1@gmail.com>2010-01-28 14:56:47 +0000
commit08284a586ec1213f7f22e86fb6950b5f335915a9 (patch)
tree7620dce4026b57f21936ef7122292bd2da994cfa /prosodyctl
parent74ceb83ccae35196585ffab5abe678e544de9d1b (diff)
downloadprosody-08284a586ec1213f7f22e86fb6950b5f335915a9.tar.gz
prosody-08284a586ec1213f7f22e86fb6950b5f335915a9.zip
util.dependencies, prosody, prosodyctl: Give util.dependencies a check_dependencies() function so the caller can decide what to do when dependencies aren't met - update prosody/prosodyctl for this change
Diffstat (limited to 'prosodyctl')
-rwxr-xr-xprosodyctl5
1 files changed, 4 insertions, 1 deletions
diff --git a/prosodyctl b/prosodyctl
index 9f51cb68..00e67bd9 100755
--- a/prosodyctl
+++ b/prosodyctl
@@ -29,10 +29,13 @@ if CFG_DATADIR then
end
end
+if not require "util.dependencies".check_dependencies() then
+ os.exit(1);
+end
+
-- Required to be able to find packages installed with luarocks
pcall(require, "luarocks.require")
-require "util.dependencies"
config = require "core.configmanager"