diff options
Diffstat (limited to 'zshfunc/upgrade-debian-hosts')
-rw-r--r-- | zshfunc/upgrade-debian-hosts | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/zshfunc/upgrade-debian-hosts b/zshfunc/upgrade-debian-hosts new file mode 100644 index 0000000..b288b53 --- /dev/null +++ b/zshfunc/upgrade-debian-hosts @@ -0,0 +1,15 @@ +## vim:ft=zsh:foldmethod=marker + +upgrade-debian-hosts() { + cd + for i in $DEBHOSTS; do + mkdir hosts/$i 2>/dev/null || continue; + echo $i; + preexec $i; + ssh $i -t ' + sudo apt-get update && + sudo apt-get dist-upgrade && + sudo apt-get clean + '; + done +} |