nsd-acme: optionalString
This commit is contained in:
parent
96388ab0d9
commit
92f69eabfa
@ -134,10 +134,7 @@ in {
|
|||||||
ExecStart = let
|
ExecStart = let
|
||||||
hook = mkHook zone;
|
hook = mkHook zone;
|
||||||
days = builtins.toString cfg.days;
|
days = builtins.toString cfg.days;
|
||||||
staging =
|
staging = lib.optionalString cfg.staging "--staging";
|
||||||
if cfg.staging
|
|
||||||
then "--staging"
|
|
||||||
else "";
|
|
||||||
in "${pkgs.uacme}/bin/uacme -c \${STATE_DIRECTORY} --verbose --days ${days} --hook ${hook} ${staging} issue ${zone}";
|
in "${pkgs.uacme}/bin/uacme -c \${STATE_DIRECTORY} --verbose --days ${days} --hook ${hook} ${staging} issue ${zone}";
|
||||||
|
|
||||||
UMask = "0022";
|
UMask = "0022";
|
||||||
|
Loading…
Reference in New Issue
Block a user