diff 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
line wrap: on
line diff
--- a/plugins/mod_admin_shell.lua	Fri Feb 20 15:45:54 2026 +0100
+++ b/plugins/mod_admin_shell.lua	Sat Feb 21 17:05:48 2026 +0100
@@ -2414,7 +2414,7 @@
 	local print = self.session.print;
 	local cm = require "core.certmanager";
 
-	path = path or module:get_option("certificates", "certs");
+	path = path or module:get_option_path("certificates", "certs", "config");
 
 	local sink = logger.add_simple_sink(function (source, level, message)
 		if source == "certmanager" then