projects
/
prosody.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mod_presence: Fix indentation
[prosody.git]
/
prosody
diff --git
a/prosody
b/prosody
index 6f5a14eb9521e9d3fa8f9019eb2f8eadbba8e1ae..c1606874a4a6f77da359e1dce9f6e88458161119 100755
(executable)
--- a/
prosody
+++ b/
prosody
@@
-128,7
+128,7
@@
function log_dependency_warnings()
end
function sanity_check()
end
function sanity_check()
- for host, host_config in pairs(config
manager
.getconfig()) do
+ for host, host_config in pairs(config.getconfig()) do
if host ~= "*"
and host_config.core.enabled ~= false
and not host_config.core.component_module then
if host ~= "*"
and host_config.core.enabled ~= false
and not host_config.core.component_module then
@@
-228,6
+228,11
@@
function init_global_state()
prosody.installed = true;
end
prosody.installed = true;
end
+ if prosody.installed then
+ -- Change working directory to data path.
+ require "lfs".chdir(data_path);
+ end
+
-- Function to reload the config file
function prosody.reload_config()
log("info", "Reloading configuration file");
-- Function to reload the config file
function prosody.reload_config()
log("info", "Reloading configuration file");