Merge pull request #78643 from petabyteboy/feature/alertmanager-startup

nixos/alertmanager: Fix startup
This commit is contained in:
Ryan Mulligan 2020-01-27 20:14:37 -08:00 committed by GitHub
commit 288cfc7d2f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -157,8 +157,8 @@ in {
wantedBy = [ "multi-user.target" ];
after = [ "network.target" ];
preStart = ''
${lib.getBin pkgs.envsubst}/bin/envsubst -o /tmp/alert-manager-substituted.yaml" \
-i ${alertmanagerYml}"
${lib.getBin pkgs.envsubst}/bin/envsubst -o "/tmp/alert-manager-substituted.yaml" \
-i "${alertmanagerYml}"
'';
serviceConfig = {
Restart = "always";