From eef9e8fefb85396f69b5628803e2174cf86765ac Mon Sep 17 00:00:00 2001 From: Colin Powell Date: Thu, 20 Feb 2020 13:20:58 -0500 Subject: [PATCH] Add bin script for upgrading linux --- bin/.bin/upgrade_systems.sh | 9 +++++++++ fish/.config/fish/functions/upgrade.fish | 11 ----------- 2 files changed, 9 insertions(+), 11 deletions(-) create mode 100755 bin/.bin/upgrade_systems.sh delete mode 100644 fish/.config/fish/functions/upgrade.fish diff --git a/bin/.bin/upgrade_systems.sh b/bin/.bin/upgrade_systems.sh new file mode 100755 index 0000000..927f5d5 --- /dev/null +++ b/bin/.bin/upgrade_systems.sh @@ -0,0 +1,9 @@ +#!/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 diff --git a/fish/.config/fish/functions/upgrade.fish b/fish/.config/fish/functions/upgrade.fish deleted file mode 100644 index 9d7c9ca..0000000 --- a/fish/.config/fish/functions/upgrade.fish +++ /dev/null @@ -1,11 +0,0 @@ -function upgrade - # Upgrade all ubuntu hosts in one go - echo "-------- Upgrading Box --------" - ssh -t root@box.onec.me "apt upgrade -y" - echo "-------- Upgrading REHA --------" - ssh -t powellc@rhea.unbl.ink "sudo apt upgrade -y" - echo "-------- Upgrading DIONE --------" - ssh -J rhea.unbl.ink dione.local "sudo apt upgrade -y" - echo "-------- Upgrading TITAN --------" - ssh -J rhea.unbl.ink -t titan.local "sudo apt upgrade -y" -end