Display a different message when rebooting

This commit is contained in:
Andreas Zweili 2023-06-19 11:59:04 +02:00
parent 53e26498ce
commit 0292cdd45a
1 changed files with 2 additions and 1 deletions

View File

@ -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