Only remove /run/hydra-machines if nutty-noon.int.chir.rs is down

This commit is contained in:
Charlotte 🦝 Delenk 2022-05-03 06:56:00 +01:00
parent 58627e931b
commit 90426985e2
Signed by: darkkirb
GPG key ID: AB2BD8DAF2E37122

View file

@ -92,9 +92,10 @@ in
Type = "oneshot";
};
script = ''
rm -f /run/hydra-machines
if ${pkgs.iputils}/bin/ping -c 1 nutty-noon.int.chir.rs; then
echo "build-pc armv7l-linux,aarch64-linux,powerpc-linux,powerpc64-linux,powerpc64le-linux,riscv32-linux,riscv64-linux,wasm32-wasi,x86_64-linux,i686-linux - 16 2 kvm,nixos-test,big-parallel,benchmark,gccarch-znver2,gccarch-znver1,gccarch-skylake,ca-derivations -" > /run/hydra-machines
else
rm -f /run/hydra-machines
fi
'';
};