mybin

my ~/bin
git clone https://a3nm.net/git/mybin/
Log | Files | Refs | README

commit 4d47137695362553cc963b6727da064d54c43cf6
parent 6a262820871d6bcabb70e372d657cbb6fad83bd7
Author: Antoine Amarilli <a3nm@a3nm.net>
Date:   Mon, 17 Oct 2016 00:37:24 +0200

upgrades

Diffstat:
upgrades | 17+++++++++++++++++
1 file changed, 17 insertions(+), 0 deletions(-)

diff --git a/upgrades b/upgrades @@ -0,0 +1,17 @@ +#!/bin/bash + +# upgrade all hosts specified in ARGV + +screen -S apt -dm 'zsh' + +for m in $@ +do + screen -S apt -x -X screen -t $m zsh -c \ + "echo \"=== upgrading $m ===\n\n\"; + ssh -t $m 'sudo apt-get update && sudo apt-get dist-upgrade'; + echo \"\n\n=== done upgrading $m===\n\n\"; + exec zsh" +done + +screen -x apt +