From 2317f6a09f386512a16fc4df0e05679456136a22 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Thu, 29 Dec 2022 18:06:35 +0100 Subject: mod_storage_sql: Don't avoid initialization under prosodyctl (fix #1787) Fixes `prosodyctl adduser` etc. Prior to d580e6a57cbb the line did nothing. Sometimes storage in the prosodyctl context does cause weirdness, as it is not in a host context, but rather a variant of global. --- plugins/mod_storage_sql.lua | 1 - 1 file changed, 1 deletion(-) (limited to 'plugins') diff --git a/plugins/mod_storage_sql.lua b/plugins/mod_storage_sql.lua index f941025e..4bed7b5c 100644 --- a/plugins/mod_storage_sql.lua +++ b/plugins/mod_storage_sql.lua @@ -831,7 +831,6 @@ local function normalize_params(params) end function module.load() - if prosody.process_type == "prosodyctl" then return; end local engines = module:shared("/*/sql/connections"); local params = normalize_params(module:get_option("sql", default_params)); local db_uri = sql.db2uri(params); -- cgit v1.2.3