diff options
author | Jörg Thalheim <Mic92@users.noreply.github.com> | 2024-05-13 10:45:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-13 10:45:28 +0200 |
commit | ba37bf5f3df2aa7ffd45737218798d0f1c5d1408 (patch) | |
tree | 23606d7017776acffa6b525f9001435457c65718 /nixos/modules/services/web-servers | |
parent | 8b6fc06e9830bcfa0e20d5bfb99007cd5039ea7e (diff) | |
parent | 0244a8d5d77102d96496fc624ecb2a441ab6d441 (diff) |
Merge pull request #307076 from flokli/caddy-reload
nixos/caddy: don't set ExecReload if enableReload is disabled
Diffstat (limited to 'nixos/modules/services/web-servers')
-rw-r--r-- | nixos/modules/services/web-servers/caddy/default.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/services/web-servers/caddy/default.nix b/nixos/modules/services/web-servers/caddy/default.nix index 1cd1448c7d567..064a0c71b586b 100644 --- a/nixos/modules/services/web-servers/caddy/default.nix +++ b/nixos/modules/services/web-servers/caddy/default.nix @@ -365,7 +365,7 @@ in # If the empty string is assigned to this option, the list of commands to start is reset, prior assignments of this option will have no effect. ExecStart = [ "" ''${cfg.package}/bin/caddy run ${runOptions} ${optionalString cfg.resume "--resume"}'' ]; # Validating the configuration before applying it ensures we’ll get a proper error that will be reported when switching to the configuration - ExecReload = [ "" ''${cfg.package}/bin/caddy reload ${runOptions} --force'' ]; + ExecReload = [ "" ] ++ lib.optional cfg.enableReload "${lib.getExe cfg.package} reload ${runOptions} --force"; User = cfg.user; Group = cfg.group; ReadWritePaths = [ cfg.dataDir ]; |