Diff

prosodyctl @ 8102:927b9c5cc17a

prosodyctl: Use the correct variable
author Kim Alvefur <zash@zash.se>
date Thu, 20 Apr 2017 16:20:28 +0200
parent 8100:1773559b03a8
child 8103:a0b498ec0b22
child 8104:4e5a8365c53f
line wrap: on
line diff
--- a/prosodyctl	Wed Apr 19 20:39:47 2017 +0200
+++ b/prosodyctl	Thu Apr 20 16:20:28 2017 +0200
@@ -701,7 +701,7 @@
 if have_pposix and pposix.getuid() == 0 then
 	-- FIXME should be enough to check if this directory is writable
 	local cert_dir = config.get("*", "certificates") or "certs";
-	cert_basedir = config.resolve_relative_path(config.paths.certs, cert_dir);
+	cert_basedir = config.resolve_relative_path(prosody.paths.config, cert_dir);
 end
 
 function cert_commands.config(arg)