From: Scott Worley Date: Sun, 3 May 2020 09:32:45 +0000 (-0700) Subject: Absolute path for flock X-Git-Url: http://git.scottworley.com/auto-upgrade-with-pinch/commitdiff_plain/2b58720b22980359a9b76a615dd11b75b956574b?ds=sidebyside;hp=b972908a3b28dc5038f716bf46075221d0845045 Absolute path for flock Fixes "flock: command not found" when run from systemd --- diff --git a/modules/auto-upgrade.nix b/modules/auto-upgrade.nix index cc98ad0..9ff5ee2 100644 --- a/modules/auto-upgrade.nix +++ b/modules/auto-upgrade.nix @@ -3,7 +3,7 @@ with lib; let cfg = config.system.autoUpgradeWithPinch; auto-upgrade-script = pkgs.writeShellScript "auto-upgrade" '' - flock /run/auto-upgrade-with-pinch ${ + ${pkgs.utillinux}/bin/flock /run/auto-upgrade-with-pinch ${ pkgs.writeShellScript "auto-upgrade-with-lock-held" '' set -e