Display a different message when rebooting
This commit is contained in:
parent
53e26498ce
commit
0292cdd45a
|
@ -30,10 +30,11 @@ do
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
fqdn="$host.2li.local"
|
fqdn="$host.2li.local"
|
||||||
echo $fqdn
|
|
||||||
if [ $reboot -eq 0 ]; then
|
if [ $reboot -eq 0 ]; then
|
||||||
|
echo $fqdn
|
||||||
nixos-rebuild switch -j auto --use-remote-sudo --target-host $fqdn --flake ".#$host"
|
nixos-rebuild switch -j auto --use-remote-sudo --target-host $fqdn --flake ".#$host"
|
||||||
else
|
else
|
||||||
|
echo "$fqdn with reboot"
|
||||||
nixos-rebuild boot -j auto --use-remote-sudo --target-host $fqdn --flake ".#$host" &&
|
nixos-rebuild boot -j auto --use-remote-sudo --target-host $fqdn --flake ".#$host" &&
|
||||||
ssh -i $rsa_key $fqdn 'sudo reboot'
|
ssh -i $rsa_key $fqdn 'sudo reboot'
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue