diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2017-02-19 13:24:07 +0100 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2017-02-19 13:25:19 +0100 |
commit | de585094c458a36a387277544bda5f4004bbb03c (patch) | |
tree | ec19fee2d163a2e79ddbad3ca5c29bca2bc98523 | |
parent | bbbd329e9a1274d0a7bfb7b741894f5417b43538 (diff) |
new-cert: sort section names if not passed explicitely.
-rw-r--r-- | Changelog | 1 | ||||
-rwxr-xr-x | lacme | 2 |
2 files changed, 2 insertions, 1 deletions
@@ -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 @@ -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; |