]> git.ipfire.org Git - thirdparty/dehydrated.git/commitdiff
command_sign_csr: redirect fds after init_system (fixes #816)
authorLukas Schauer <lukas@schauer.dev>
Fri, 16 Apr 2021 12:32:05 +0000 (14:32 +0200)
committerLukas Schauer <lukas@schauer.dev>
Fri, 16 Apr 2021 12:32:05 +0000 (14:32 +0200)
dehydrated

index 27f930f6f83f3c16885aa00eb828678b990ecbd6..dae40496588baa30b4b993416e90abb488a562af 100755 (executable)
@@ -1760,12 +1760,12 @@ command_sign_domains() {
 # Usage: --signcsr (-s) path/to/csr.pem
 # Description: Sign a given CSR, output CRT on stdout (advanced usage)
 command_sign_csr() {
+  init_system
+
   # redirect stdout to stderr
   # leave stdout over at fd 3 to output the cert
   exec 3>&1 1>&2
 
-  init_system
-
   # load csr
   csrfile="${1}"
   if [ ! -r "${csrfile}" ]; then