Changeset

12823:dd6c35325241 0.12

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.
author Kim Alvefur <zash@zash.se>
date Thu, 29 Dec 2022 18:06:35 +0100
parents 12801:ebd6b4d8bf04
children 12824:735bf601b78d 12825:ee5fcfef5200
files plugins/mod_storage_sql.lua
diffstat 1 files changed, 0 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_storage_sql.lua	Mon Dec 12 20:40:23 2022 +0100
+++ b/plugins/mod_storage_sql.lua	Thu Dec 29 18:06:35 2022 +0100
@@ -831,7 +831,6 @@
 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);