aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--prosody (renamed from main.lua)15
1 files changed, 15 insertions, 0 deletions
diff --git a/main.lua b/prosody
index 7e41012c..6f13decd 100644
--- a/main.lua
+++ b/prosody
@@ -1,5 +1,20 @@
+#!/usr/bin/env lua
+
+-- Config here --
+
+
+
+-- -- -- -- -- --
+
+if CFG_SOURCEDIR then
+ package.path = CFG_SOURCEDIR.."/?.lua;"..package.path
+ package.cpath = CFG_SOURCEDIR.."/?.lua;"..package.cpath
+end
+
+-- Required to be able to find packages installed with luarocks
pcall(require, "luarocks.require")
+
config = require "core.configmanager"
log = require "util.logger".init("general");