diff --git a/targets/nixos-wiki.nixos.org/deploy.sh b/targets/nixos-wiki.nixos.org/deploy.sh index 2e92dcf..8b65587 100755 --- a/targets/nixos-wiki.nixos.org/deploy.sh +++ b/targets/nixos-wiki.nixos.org/deploy.sh @@ -1,4 +1,6 @@ #!/usr/bin/env bash nix build .#checks.x86_64-linux.test -L -nixos-rebuild switch --flake .#nixos-wiki-nixos-org --target-host root@wiki.nixos.org +if ! nixos-rebuild switch --flake .#nixos-wiki-nixos-org --target-host root@wiki.nixos.org; then + nixos-rebuild switch --flake .#nixos-wiki-nixos-org --target-host root@wiki.nixos.org +fi