diff options
author | Kim Alvefur <zash@zash.se> | 2022-01-09 21:47:04 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2022-01-09 21:47:04 +0100 |
commit | d8c9ea741bfd41d5876e564435062b5018971855 (patch) | |
tree | 0ccb677a1d4407f649b54a2f0f4043f8f0397aee /util/prosodyctl/cert.lua | |
parent | 3854d0c0901934d3ec7d697c2c61562aa8ad9bda (diff) | |
download | prosody-d8c9ea741bfd41d5876e564435062b5018971855.tar.gz prosody-d8c9ea741bfd41d5876e564435062b5018971855.zip |
util.prosodyctl.cert: Fix boolean logic bug
Boolean logic, never correct on the first try.
We want to skip copying the same cert if it _has_ been imported already,
not if it has not.
Diffstat (limited to 'util/prosodyctl/cert.lua')
-rw-r--r-- | util/prosodyctl/cert.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/prosodyctl/cert.lua b/util/prosodyctl/cert.lua index 4461182d..4779fdc4 100644 --- a/util/prosodyctl/cert.lua +++ b/util/prosodyctl/cert.lua @@ -223,7 +223,7 @@ function cert_commands.import(arg) local imported = {}; for _, host in ipairs(hostnames) do local paths = cm.find_cert_in_index(files_by_name, host); - if paths and not imported[paths.certificate] then + if paths and imported[paths.certificate] then -- One certificate, many mames! table.insert(imported, host); elseif paths then |