aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;