Changeset

7531:2db68d1a6eeb

certmanager: Assume default config path of '.' (fixes prosodyctl check certs when not installed)
author Kim Alvefur <zash@zash.se>
date Fri, 29 Jul 2016 11:24:28 +0200
parents 7529:bdaff978c790
children 7532:02b3ea42265b 7533:4ef37ac69562
files core/certmanager.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/core/certmanager.lua	Thu Jul 28 15:34:45 2016 +0800
+++ b/core/certmanager.lua	Fri Jul 29 11:24:28 2016 +0200
@@ -33,7 +33,7 @@
 
 local prosody = prosody;
 local resolve_path = require"util.paths".resolve_relative_path;
-local config_path = prosody.paths.config;
+local config_path = prosody.paths.config or ".";
 
 local luasec_major, luasec_minor = ssl._VERSION:match("^(%d+)%.(%d+)");
 local luasec_version = tonumber(luasec_major) * 100 + tonumber(luasec_minor);