Add reboot step

This commit is contained in:
Andreas Zweili 2022-05-20 13:29:35 +02:00
parent 77f7907e5e
commit 292750ae80
1 changed files with 11 additions and 0 deletions

View File

@ -33,3 +33,14 @@ do
echo
echo
done
for host in "${hosts[@]}"
do
fqdn="$host.2li.local"
if [ $host == "nixos-management" ]; then
continue
fi
echo "reboot $fqdn"
ssh -i rsa_key 'sudo reboot'
echo
echo
done