Browse Source

Fix upgrade function #fishshell

Colin Powell 6 years ago
parent
commit
618354bcc2
1 changed files with 8 additions and 3 deletions
  1. 8 3
      fish/.config/fish/functions/upgrade.fish

+ 8 - 3
fish/.config/fish/functions/upgrade.fish

@@ -1,8 +1,13 @@
 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"
-	ssh -t powellc@rhea.unbl.ink -t dione.local "sudo apt upgrade -y"
-	ssh -t powellc@rhea.unbl.ink -t titan.local "sudo apt upgrade -y"
-	ssh -t powellc@rhea.unbl.ink -t iapetus.local "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 titan.local "sudo apt upgrade -y"
+	echo "-------- Upgrading IAPETUS --------"
+	ssh -J rhea.unbl.ink iapetus.local "sudo apt upgrade -y"
 end