From 4c013cb2bc89c7dae073b2a67f58d15715c8d825 Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Tue, 30 Mar 2021 00:18:08 +0000 Subject: [PATCH] blade-router: use absolute path to birdc --- ops/nixos/lib/blade-router.nix | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/ops/nixos/lib/blade-router.nix b/ops/nixos/lib/blade-router.nix index eef6a0238e..2d481ffc03 100644 --- a/ops/nixos/lib/blade-router.nix +++ b/ops/nixos/lib/blade-router.nix @@ -12,13 +12,15 @@ let NAME=$2 TYPE=$1 + BIRDC=${pkgs.bird2}/bin/birdc + case $ENDSTATE in - "MASTER") birdc enable export4 - birdc enable export6 + "MASTER") $BIRDC enable export4 + $BIRDC enable export6 exit 0 ;; - *) birdc disable export4 - birdc disable export6 + *) $BIRDC disable export4 + $BIRDC disable export6 exit 0 ;; esac