Change sysupgrade script file

This commit is contained in:
Colin Powell
2020-03-11 23:29:54 -04:00
parent 7bf19cb825
commit e333ca71f5
2 changed files with 13 additions and 9 deletions

13
bin/.bin/sysupgrade Executable file
View File

@ -0,0 +1,13 @@
#!/usr/bin/env sh
# Upgrade all ubuntu hosts in one go
echo "-------- Upgrading box.unbl.ink --------"
ssh -t root@box.unbl.ink "apt upgrade -y && apt autoremove -y"
echo "-------- Upgrading box.castine.town --------"
ssh -t root@box.castine.town "apt upgrade -y && apt autoremove -y"
echo "-------- Upgrading iapetus.local --------"
ssh -J rhea.unbl.ink -t iapetus.local "sudo apt upgrade -y && sudo apt autoremove -y"
echo "-------- Upgrading phoebe.local --------"
ssh -J rhea.unbl.ink -t phoebe.local "sudo apt upgrade -y && sudo apt autoremove -y"
echo "-------- Upgrading dione.local --------"
ssh -J rhea.unbl.ink -t dione.local "sudo apt upgrade -y && sudo apt autoremove -y"
# TODO Add titan & rhea freebsd upgrades

View File

@ -1,9 +0,0 @@
#!/usr/bin/env sh
# Upgrade all ubuntu hosts in one go
echo "-------- Upgrading box.unbl.ink --------"
ssh -t root@box.unbl.ink "apt upgrade -y && apt autoremove -y"
echo "-------- Upgrading box.castine.town --------"
ssh -t root@box.castine.town "apt upgrade -y && apt autoremove -y"
echo "-------- Upgrading iapetus.local --------"
ssh -J janus.unbl.ink -t iapetus.local "sudo apt upgrade -y && apt autoremove -y"
# TODO Add titan & janus freebsd upgrades