]> git.scottworley.com Git - auto-upgrade-with-pinch/commitdiff
Absolute path for flock
authorScott Worley <scottworley@scottworley.com>
Sun, 3 May 2020 09:32:45 +0000 (02:32 -0700)
committerScott Worley <scottworley@scottworley.com>
Mon, 18 May 2020 18:48:51 +0000 (11:48 -0700)
Fixes "flock: command not found" when run from systemd

modules/auto-upgrade.nix

index cc98ad07d36103481ffcfd8b1861618a68e51b08..9ff5ee2e9da2b062ac21e500c02ea468a9ad278a 100644 (file)
@@ -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