Last active
July 16, 2024 23:16
-
-
Save tvarohohlavy/275f899f85bdd89aa0d7b8c0e91695e0 to your computer and use it in GitHub Desktop.
DeskPi Super6C | Raspberry Pi CM4 | Update, Upgrade, Cleanup all nodes over SSH
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Variables | |
USERNAME= | |
HOSTNAME_BASE=deskpi0 | |
DOMAIN= | |
# Execute on nodes | |
for ID in {1..6} | |
do | |
echo "=================== $HOSTNAME_BASE$ID.$DOMAIN ===================" | |
ssh -T $USERNAME@$HOSTNAME_BASE$ID.$DOMAIN << EOF | |
sudo apt update | |
sudo apt -y upgrade | |
sudo apt -y autoremove | |
sudo reboot | |
EOF | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment