fix changeAction==none case

main
Jörg Thalheim 2 years ago
parent ee3c4a1363
commit 12707af861

@ -35,7 +35,7 @@ let
destination = "/run/systemd-vaultd/secrets/${serviceName}.service.json"; destination = "/run/systemd-vaultd/secrets/${serviceName}.service.json";
perms = "0400"; perms = "0400";
} }
// lib.optionalAttrs (vaultConfig.changeAction != null) { // lib.optionalAttrs (vaultConfig.changeAction != null && vaultConfig.changeAction != "none") {
command = "systemctl ${ command = "systemctl ${
if vaultConfig.changeAction == "restart" if vaultConfig.changeAction == "restart"
then "try-restart" then "try-restart"

Loading…
Cancel
Save