blob: 07d6ba1e64d840430a595e15660a804096640e7c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
## vim:ft=zsh:foldmethod=marker
local i
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
|