syncthing: use proper output for binaries in services

This commit is contained in:
Ioannis Koutras 2018-12-25 18:45:12 +02:00
parent 82efd22fbc
commit 2fac8b2740

View File

@ -71,11 +71,11 @@ in {
substitute etc/linux-systemd/system/syncthing@.service \ substitute etc/linux-systemd/system/syncthing@.service \
$out/lib/systemd/system/syncthing@.service \ $out/lib/systemd/system/syncthing@.service \
--replace /usr/bin/syncthing $out/bin/syncthing --replace /usr/bin/syncthing $bin/bin/syncthing
substitute etc/linux-systemd/user/syncthing.service \ substitute etc/linux-systemd/user/syncthing.service \
$out/lib/systemd/user/syncthing.service \ $out/lib/systemd/user/syncthing.service \
--replace /usr/bin/syncthing $out/bin/syncthing --replace /usr/bin/syncthing $bin/bin/syncthing
''; '';
}; };
@ -99,7 +99,7 @@ in {
substitute cmd/strelaysrv/etc/linux-systemd/strelaysrv.service \ substitute cmd/strelaysrv/etc/linux-systemd/strelaysrv.service \
$out/lib/systemd/system/strelaysrv.service \ $out/lib/systemd/system/strelaysrv.service \
--replace /usr/bin/strelaysrv $out/bin/strelaysrv --replace /usr/bin/strelaysrv $bin/bin/strelaysrv
''; '';
}; };
} }