Update rebootSchedule.sh

This commit is contained in:
2023-11-29 11:50:23 +01:00
parent f761ef51e4
commit c958083ad8

View File

@@ -30,7 +30,8 @@ for SERVER in "${SECOND[@]}"; do
echo "------------------------------------" echo "------------------------------------"
date +"%H:%M:%S %d-%m-%Y" date +"%H:%M:%S %d-%m-%Y"
echo "Starting reboot of $SERVER" echo "Starting reboot of $SERVER"
ssh "$SERVER" reboot now ssh "$SERVER" reboot now &
echo "Reboot started on $SERVER"
sleep 60 sleep 60
done done
@@ -44,7 +45,8 @@ for SERVER in "${THIRD[@]}"; do
echo "------------------------------------" echo "------------------------------------"
date +"%H:%M:%S %d-%m-%Y" date +"%H:%M:%S %d-%m-%Y"
echo "Starting reboot of $SERVER" echo "Starting reboot of $SERVER"
ssh "$SERVER" reboot now ssh "$SERVER" reboot now &
echo "Reboot started on $SERVER"
done done
############################################ ############################################
@@ -57,7 +59,8 @@ for SERVER in "${REST[@]}"; do
echo "------------------------------------" echo "------------------------------------"
date +"%H:%M:%S %d-%m-%Y" date +"%H:%M:%S %d-%m-%Y"
echo "Starting reboot of $SERVER" echo "Starting reboot of $SERVER"
ssh "$SERVER" reboot now ssh "$SERVER" reboot now &
echo "Reboot started on $SERVER"
done done
############################################ ############################################