3
0
Fork 0
forked from mirrors/nixpkgs

nixos/acme: Fix broken post-stop script

Previously the script would contain an empty `if` block (which is invalid
syntax) if both `data.activationDelay == null` and `data.postRun == ""`. Fix
this by adding a no-op `true`.
This commit is contained in:
Ben Gamari 2018-04-29 13:30:09 -04:00
parent 7139c65c88
commit 7d68eadf37

View file

@ -266,6 +266,10 @@ in
systemctl --wait start acme-setlive-${cert}.service
fi
'' else data.postRun}
# noop ensuring that the "if" block is non-empty even if
# activationDelay == null and postRun == ""
true
fi
'';