aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2017-02-19 13:24:07 +0100
committerGuilhem Moulin <guilhem@fripost.org>2017-02-19 13:25:19 +0100
commitde585094c458a36a387277544bda5f4004bbb03c (patch)
treeec19fee2d163a2e79ddbad3ca5c29bca2bc98523
parentbbbd329e9a1274d0a7bfb7b741894f5417b43538 (diff)
new-cert: sort section names if not passed explicitely.
-rw-r--r--Changelog1
-rwxr-xr-xlacme2
2 files changed, 2 insertions, 1 deletions
diff --git a/Changelog b/Changelog
index d9aacd0..a622a5d 100644
--- a/Changelog
+++ b/Changelog
@@ -4,6 +4,7 @@ lacme (0.3) upstream;
lacme-certs.conf.d"), import the default section of files read earlier.
- Ensure lacme's config file descriptor is not passed to the accountd
or webserver components.
+ - new-cert: sort section names if not passed explicitely.
-- Guilhem Moulin <guilhem@guilhem.org> Sun, 19 Feb 2017 13:08:41 +0100
diff --git a/lacme b/lacme
index 8cbed17..f9b3530 100755
--- a/lacme
+++ b/lacme
@@ -598,7 +598,7 @@ elsif ($COMMAND eq 'new-cert') {
my $challenge_dir;
my $rv = 0;
- foreach my $s (@ARGV ? @ARGV : keys %$conf) {
+ foreach my $s (@ARGV ? @ARGV : sort (keys %$conf)) {
my $conf = $conf->{$s} // do {
print STDERR "Warning: No such section $s, skipping\n";
$rv = 1;