Changeset

3890:5cdcb5741075

util.prosodyctl: Initialize storagemanager on hosts we modify
author Matthew Wild <mwild1@gmail.com>
date Sat, 18 Dec 2010 02:33:47 +0000
parents 3889:2ef3d10e107b
children 3891:f82af9f7f1cd
files util/prosodyctl.lua
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/util/prosodyctl.lua	Sat Dec 18 02:29:33 2010 +0000
+++ b/util/prosodyctl.lua	Sat Dec 18 02:33:47 2010 +0000
@@ -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 @@
 	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 @@
 	if not(provider) or provider.name == "null" then
 		usermanager.initialize_host(host);
 	end
+	storagemanager.initialize_host(host);
 	
 	return usermanager.user_exists(user, host);
 end