Merge pull request #141734 from NickCao/maddy

maddy: fix binary path substitution in upstream systemd unit
This commit is contained in:
Artturi 2021-10-16 08:13:36 +03:00 committed by GitHub
commit a613697d6e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,11 +29,11 @@ buildGoModule rec {
mkdir -p $out/lib/systemd/system
substitute dist/systemd/maddy.service $out/lib/systemd/system/maddy.service \
--replace "/usr/bin/maddy" "$out/bin/maddy" \
--replace "/usr/local/bin/maddy" "$out/bin/maddy" \
--replace "/bin/kill" "${coreutils}/bin/kill"
substitute dist/systemd/maddy@.service $out/lib/systemd/system/maddy@.service \
--replace "/usr/bin/maddy" "$out/bin/maddy" \
--replace "/usr/local/bin/maddy" "$out/bin/maddy" \
--replace "/bin/kill" "${coreutils}/bin/kill"
'';