Browse Source

Add bin script for upgrading linux

Colin Powell 5 years ago
parent
commit
eef9e8fefb
2 changed files with 9 additions and 11 deletions
  1. 9 0
      bin/.bin/upgrade_systems.sh
  2. 0 11
      fish/.config/fish/functions/upgrade.fish

+ 9 - 0
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

+ 0 - 11
fish/.config/fish/functions/upgrade.fish

@@ -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