nsd-acme: optionalString

This commit is contained in:
Motiejus Jakštys 2023-09-23 22:28:27 +03:00
parent 96388ab0d9
commit 92f69eabfa
1 changed files with 1 additions and 4 deletions

View File

@ -134,10 +134,7 @@ in {
ExecStart = let
hook = mkHook zone;
days = builtins.toString cfg.days;
staging =
if cfg.staging
then "--staging"
else "";
staging = lib.optionalString cfg.staging "--staging";
in "${pkgs.uacme}/bin/uacme -c \${STATE_DIRECTORY} --verbose --days ${days} --hook ${hook} ${staging} issue ${zone}";
UMask = "0022";