Skip to content

Commit

Permalink
ipfs: remove executable bit from systemd units
Browse files Browse the repository at this point in the history
IPFS would complain with warnings like
Configuration file /nix/store/...-ipfs-0.6.0/etc/systemd/system/ipfs.service is marked executable. Please remove executable permission bits. Proceeding anyway.

(cherry picked from commit 1a382e9)
  • Loading branch information
Luflosi authored and Ericson2314 committed Oct 16, 2020
1 parent 848f952 commit 05d9031
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkgs/applications/networking/ipfs/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ buildGoModule rec {
vendorSha256 = null;

postInstall = ''
install -D misc/systemd/ipfs.service $out/etc/systemd/system/ipfs.service
install -D misc/systemd/ipfs-api.socket $out/etc/systemd/system/ipfs-api.socket
install -D misc/systemd/ipfs-gateway.socket $out/etc/systemd/system/ipfs-gateway.socket
install --mode=444 -D misc/systemd/ipfs.service $out/etc/systemd/system/ipfs.service
install --mode=444 -D misc/systemd/ipfs-api.socket $out/etc/systemd/system/ipfs-api.socket
install --mode=444 -D misc/systemd/ipfs-gateway.socket $out/etc/systemd/system/ipfs-gateway.socket
substituteInPlace $out/etc/systemd/system/ipfs.service \
--replace /usr/bin/ipfs $out/bin/ipfs
'';
Expand Down

0 comments on commit 05d9031

Please sign in to comment.