aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2008-11-29 01:00:04 +0000
committerMatthew Wild <mwild1@gmail.com>2008-11-29 01:00:04 +0000
commitdd37be1f32ea1d3751e5fe6079543d1c359c3c36 (patch)
treecf238e6f80074127c3bb0c529e314670a1e4ec8d
parent121e93a07ad29500c1b8e1c56efff7055cf324bc (diff)
downloadprosody-dd37be1f32ea1d3751e5fe6079543d1c359c3c36.tar.gz
prosody-dd37be1f32ea1d3751e5fe6079543d1c359c3c36.zip
main.lua -> prosody
-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");