Diff

plugins/mod_storage_sql.lua @ 12595:0572b6e604a3

Merge 0.12->trunk
author Kim Alvefur <zash@zash.se>
date Wed, 27 Jul 2022 00:10:08 +0200
parent 12589:39ae08180c81
parent 12592:d580e6a57cbb
child 12600:3d3a0c4e2662
line wrap: on
line diff
--- a/plugins/mod_storage_sql.lua	Wed Jun 01 15:06:59 2022 +0200
+++ b/plugins/mod_storage_sql.lua	Wed Jul 27 00:10:08 2022 +0200
@@ -832,7 +832,7 @@
 end
 
 function module.load()
-	if prosody.prosodyctl then return; end
+	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);