Software / code / prosody
Comparison
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 |
comparison
equal
deleted
inserted
replaced
| 8100:1773559b03a8 | 8102:927b9c5cc17a |
|---|---|
| 699 | 699 |
| 700 local cert_basedir = CFG_DATADIR or "./certs"; | 700 local cert_basedir = CFG_DATADIR or "./certs"; |
| 701 if have_pposix and pposix.getuid() == 0 then | 701 if have_pposix and pposix.getuid() == 0 then |
| 702 -- FIXME should be enough to check if this directory is writable | 702 -- FIXME should be enough to check if this directory is writable |
| 703 local cert_dir = config.get("*", "certificates") or "certs"; | 703 local cert_dir = config.get("*", "certificates") or "certs"; |
| 704 cert_basedir = config.resolve_relative_path(config.paths.certs, cert_dir); | 704 cert_basedir = config.resolve_relative_path(prosody.paths.config, cert_dir); |
| 705 end | 705 end |
| 706 | 706 |
| 707 function cert_commands.config(arg) | 707 function cert_commands.config(arg) |
| 708 if #arg >= 1 and arg[1] ~= "--help" then | 708 if #arg >= 1 and arg[1] ~= "--help" then |
| 709 local conf_filename = cert_basedir .. "/" .. arg[1] .. ".cnf"; | 709 local conf_filename = cert_basedir .. "/" .. arg[1] .. ".cnf"; |