Merge pull request #76052 from brprice/WIP/acme

nixos/acme: implement postRun using ExecStartPost
This commit is contained in:
Florian Klink 2019-12-20 23:32:53 +01:00 committed by GitHub
commit 749857f7aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -241,9 +241,9 @@ in
StateDirectoryMode = rights; StateDirectoryMode = rights;
WorkingDirectory = "/var/lib/${lpath}"; WorkingDirectory = "/var/lib/${lpath}";
ExecStart = "${pkgs.simp_le}/bin/simp_le ${escapeShellArgs cmdline}"; ExecStart = "${pkgs.simp_le}/bin/simp_le ${escapeShellArgs cmdline}";
ExecStopPost = ExecStartPost =
let let
script = pkgs.writeScript "acme-post-stop" '' script = pkgs.writeScript "acme-post-start" ''
#!${pkgs.runtimeShell} -e #!${pkgs.runtimeShell} -e
${data.postRun} ${data.postRun}
''; '';