# HG changeset patch
# User Kim Alvefur <zash@zash.se>
# Date 1492698028 -7200
# Node ID 927b9c5cc17ad05f06a9cb8900667073d24936b0
# Parent  1773559b03a8719b1200cebeb14d77871468d4a0
prosodyctl: Use the correct variable

diff -r 1773559b03a8 -r 927b9c5cc17a prosodyctl
--- 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)