summaryrefslogtreecommitdiff
path: root/zshfunc/upgrade-debian-hosts
blob: fcba3a9428e0bed5258d93a04dab36d8416bacee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
## vim:ft=zsh:foldmethod=marker

local i

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