Last change
on this file since 4099 was
4095,
checked in by acosce, 6 years ago
|
la mise a jour des droits sur le repertoire IGCM du TGCC est mise a la fin du script
|
File size:
1.1 KB
|
Line | |
---|
1 | #!/bin/bash |
---|
2 | |
---|
3 | cd /ccc/work/cont003/igcmg/igcmg |
---|
4 | |
---|
5 | echo " Resultat du rsync en dry-run : " |
---|
6 | echo "" |
---|
7 | rsync -n -vrltgoD --progress --delete -e "ssh -ax -o ClearAllForwardings=yes -c blowfish" --exclude='IGCM/CMIP6/*' IGCM igcmg@ciclad.ipsl.jussieu.fr:/prodigfs/ipslfs/igcmg |
---|
8 | |
---|
9 | echo "Voulez vous effectuer les actions listees ci dessus oui/non ?" |
---|
10 | echo -n " Votre reponse : " |
---|
11 | read reponse |
---|
12 | |
---|
13 | case ${reponse} in |
---|
14 | |
---|
15 | oui|OUI|o) |
---|
16 | rsync -vrltgoD --progress --chmod=o-w --chmod=g-w --chmod=u-w --delete -e "ssh -ax -o ClearAllForwardings=yes -c blowfish" --exclude='IGCM/CMIP6/*' IGCM igcmg@ciclad.ipsl.jussieu.fr:/prodigfs/ipslfs/igcmg |
---|
17 | ;; |
---|
18 | non|NON|n) |
---|
19 | echo "RIEN A FAIRE !" |
---|
20 | ;; |
---|
21 | *) |
---|
22 | echo "Reponse non reconnue" |
---|
23 | ;; |
---|
24 | esac |
---|
25 | |
---|
26 | |
---|
27 | |
---|
28 | echo "Verification des droits des repertoires TGCC" |
---|
29 | ccc_shspace_chmod userread /ccc/work/cont003/igcmg/igcmg/IGCM |
---|
30 | is_problem=` ccc_shspace_modck IGCM |grep ccc_shspace_chmod |wc -l` |
---|
31 | if [ "x${is_problem}" != "x0" ] |
---|
32 | then |
---|
33 | echo "Il y a un probleme de droit sur un repertoire qui ne vous appartient pas" |
---|
34 | echo "vous pouvez utiliser la commande ccc_shspace_modck IGCM pour savoir qui doit mettre a jour les droits" |
---|
35 | fi |
---|
Note: See
TracBrowser
for help on using the repository browser.