diff options
author | Kim Alvefur <zash@zash.se> | 2022-12-29 18:06:35 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2022-12-29 18:06:35 +0100 |
commit | 2317f6a09f386512a16fc4df0e05679456136a22 (patch) | |
tree | 529ac5a11b7531bb1b0eeca37ae7fb9c74063559 | |
parent | baff85a52c5fda705e8b3699410c770f015d89ab (diff) | |
download | prosody-2317f6a09f386512a16fc4df0e05679456136a22.tar.gz prosody-2317f6a09f386512a16fc4df0e05679456136a22.zip |
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.
-rw-r--r-- | plugins/mod_storage_sql.lua | 1 |
1 files changed, 0 insertions, 1 deletions
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); |