From 0292cdd45a5531dc9640a3b8c9cc553e9ae10854 Mon Sep 17 00:00:00 2001 From: Andreas Zweili Date: Mon, 19 Jun 2023 11:59:04 +0200 Subject: [PATCH] Display a different message when rebooting --- scripts/remote_switch.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/remote_switch.sh b/scripts/remote_switch.sh index a9eee7d..f897306 100755 --- a/scripts/remote_switch.sh +++ b/scripts/remote_switch.sh @@ -30,10 +30,11 @@ do continue fi fqdn="$host.2li.local" - echo $fqdn if [ $reboot -eq 0 ]; then + echo $fqdn nixos-rebuild switch -j auto --use-remote-sudo --target-host $fqdn --flake ".#$host" else + echo "$fqdn with reboot" nixos-rebuild boot -j auto --use-remote-sudo --target-host $fqdn --flake ".#$host" && ssh -i $rsa_key $fqdn 'sudo reboot' fi