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

cd
for i in $HOSTS; do
	mkdir hosts/$i 2>/dev/null || continue;
	echo $i;
	preexec $i;
	ssh $i -t 'apt-get update &&
		if [ -e /usr/bin/apt-get.distrib ]; then
			aptitude dist-upgrade;
		else
			apt-get dist-upgrade;
		fi &&
		apt-get clean';
done