projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f75723b
)
util.prosodyctl: Initialize storagemanager on hosts we modify
author
Matthew Wild
<mwild1@gmail.com>
Sat, 18 Dec 2010 02:33:47 +0000
(
02:33
+0000)
committer
Matthew Wild
<mwild1@gmail.com>
Sat, 18 Dec 2010 02:33:47 +0000
(
02:33
+0000)
util/prosodyctl.lua
patch
|
blob
|
history
diff --git
a/util/prosodyctl.lua
b/util/prosodyctl.lua
index d7ca1a3063727abd832c6293bd2471a51fe1724d..3e6e90eee7504a665dc5bf46e4fe61d56bd71ee3 100644
(file)
--- a/
util/prosodyctl.lua
+++ b/
util/prosodyctl.lua
@@
-10,6
+10,7
@@
local config = require "core.configmanager";
local encodings = require "util.encodings";
local stringprep = encodings.stringprep;
local config = require "core.configmanager";
local encodings = require "util.encodings";
local stringprep = encodings.stringprep;
+local storagemanager = require "core.storagemanager";
local usermanager = require "core.usermanager";
local signal = require "util.signal";
local set = require "util.set";
local usermanager = require "core.usermanager";
local signal = require "util.signal";
local set = require "util.set";
@@
-38,6
+39,7
@@
function adduser(params)
if not(provider) or provider.name == "null" then
usermanager.initialize_host(host);
end
if not(provider) or provider.name == "null" then
usermanager.initialize_host(host);
end
+ storagemanager.initialize_host(host);
local ok = usermanager.create_user(user, password, host);
if not ok then
local ok = usermanager.create_user(user, password, host);
if not ok then
@@
-52,6
+54,7
@@
function user_exists(params)
if not(provider) or provider.name == "null" then
usermanager.initialize_host(host);
end
if not(provider) or provider.name == "null" then
usermanager.initialize_host(host);
end
+ storagemanager.initialize_host(host);
return usermanager.user_exists(user, host);
end
return usermanager.user_exists(user, host);
end