blob: 071c8dc4a8768c4467b888c71f1d3ca974c6ea3f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
## vim:ft=zsh:foldmethod=marker
upgrade-systems() {
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
}
|