comparison plugins/mod_admin_shell.lua @ 14090:2aeb5dcb36bf 13.0

mod_admin_shell: Make cert index search path relative to config file Otherwise it defaults to something relative to the working directory, wherever that is? Data directory maybe?
author Kim Alvefur <zash@zash.se>
date Sat, 21 Feb 2026 17:05:48 +0100
parents 5ad86978ae78
children f20bb1c53652 b9688ac25255
comparison
equal deleted inserted replaced
14088:d08f18c35d27 14090:2aeb5dcb36bf
2412 describe_command [[debug:cert_index([path]) - Show Prosody's view of a directory of certs]] 2412 describe_command [[debug:cert_index([path]) - Show Prosody's view of a directory of certs]]
2413 function def_env.debug:cert_index(path) 2413 function def_env.debug:cert_index(path)
2414 local print = self.session.print; 2414 local print = self.session.print;
2415 local cm = require "core.certmanager"; 2415 local cm = require "core.certmanager";
2416 2416
2417 path = path or module:get_option("certificates", "certs"); 2417 path = path or module:get_option_path("certificates", "certs", "config");
2418 2418
2419 local sink = logger.add_simple_sink(function (source, level, message) 2419 local sink = logger.add_simple_sink(function (source, level, message)
2420 if source == "certmanager" then 2420 if source == "certmanager" then
2421 if level == "debug" or level == "info" then 2421 if level == "debug" or level == "info" then
2422 level = "II"; 2422 level = "II";