]> gitweb.pimeys.fr Git - scripts-20-100.git/blob - update_myconfig.sh
[update_myconfig] Message de warning ForwardAgent=no au début.
[scripts-20-100.git] / update_myconfig.sh
1 #!/bin/bash
2
3 # Pour mettre à jour les fichiers de configuration personnelle
4 # sur toutes les machines où j'ai accès
5
6 color='\e[0;31m'
7 endcolor='\e[0m'
8
9 if [ "$1" = "--local" ]
10 then
11 localmode=".local"
12 fi
13
14 echo "Les machines de Serenity sont en dernier (.local issue)"
15
16 echo "${color}Ne peut pas mettre à jour (ForwardAgent=no) :${endcolor} tahines, rasputin"
17
18 # locally
19 echo "${color}sur eva:${endcolor} (localement)"
20 cd ~/.myconfig
21 git pull
22
23 for i in cerebro info22 bde bde2 bde3 videobde pimeys baldrick quigon hexagon zamok soyouz rezosup acoeur gladys${localmode} cabal${localmode}
24 do
25 echo "${color}sur $i:${endcolor}"
26 ssh $i 'cd .myconfig; git pull'
27 done