diff options
author | Matthew Wild <mwild1@gmail.com> | 2010-12-18 02:33:47 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2010-12-18 02:33:47 +0000 |
commit | 38df8cd28e27fd69e7c28bc04ca168a643da45b8 (patch) | |
tree | 35826d37ebf7c5101e63f4d589771498c133d1b1 /util/prosodyctl.lua | |
parent | c8333f80b50e34a60f8e81ed2bbd021bebfe954e (diff) | |
download | prosody-38df8cd28e27fd69e7c28bc04ca168a643da45b8.tar.gz prosody-38df8cd28e27fd69e7c28bc04ca168a643da45b8.zip |
util.prosodyctl: Initialize storagemanager on hosts we modify
Diffstat (limited to 'util/prosodyctl.lua')
-rw-r--r-- | util/prosodyctl.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/util/prosodyctl.lua b/util/prosodyctl.lua index d7ca1a30..3e6e90ee 100644 --- 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 storagemanager = require "core.storagemanager"; 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 + storagemanager.initialize_host(host); 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 + storagemanager.initialize_host(host); return usermanager.user_exists(user, host); end |