Comparison

prosodyctl @ 7297:b34a42a10c9f

prosody, prosodyctl: Allow setting CFG_* variables via Lua interpreter before loading Prosody. Fixes #308.
author Matthew Wild <mwild1@gmail.com>
date Fri, 18 Mar 2016 10:24:46 +0000
parent 7267:8ad2dbc4fdb6
child 7302:92d86016e1e3
child 7311:e9526dd3e8fc
comparison
equal deleted inserted replaced
7296:1859e07ae082 7297:b34a42a10c9f
9 9
10 -- prosodyctl - command-line controller for Prosody XMPP server 10 -- prosodyctl - command-line controller for Prosody XMPP server
11 11
12 -- Will be modified by configure script if run -- 12 -- Will be modified by configure script if run --
13 13
14 CFG_SOURCEDIR=os.getenv("PROSODY_SRCDIR"); 14 CFG_SOURCEDIR=CFG_SOURCEDIR or os.getenv("PROSODY_SRCDIR");
15 CFG_CONFIGDIR=os.getenv("PROSODY_CFGDIR"); 15 CFG_CONFIGDIR=CFG_CONFIGDIR or os.getenv("PROSODY_CFGDIR");
16 CFG_PLUGINDIR=os.getenv("PROSODY_PLUGINDIR"); 16 CFG_PLUGINDIR=CFG_PLUGINDIR or os.getenv("PROSODY_PLUGINDIR");
17 CFG_DATADIR=os.getenv("PROSODY_DATADIR"); 17 CFG_DATADIR=CFG_DATADIR or os.getenv("PROSODY_DATADIR");
18 18
19 -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 19 -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20 20
21 local function is_relative(path) 21 local function is_relative(path)
22 local path_sep = package.config:sub(1,1); 22 local path_sep = package.config:sub(1,1);