Changeset 4095
- Timestamp:
- 10/25/18 15:32:17 (6 years ago)
- Location:
- TOOLS/SYNCHRO_SCRIPTS
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
TOOLS/SYNCHRO_SCRIPTS/synchro_igcmg_to_ada
r4094 r4095 6 6 7 7 cd /ccc/work/cont003/igcmg/igcmg 8 9 echo "Mise a jour des droits sur les repertoires de donnees (TGCC) "10 ccc_shspace_chmod userread /ccc/work/cont003/igcmg/igcmg/IGCM11 is_problem=` ccc_shspace_modck IGCM |grep ccc_shspace_chmod |wc -l`12 if [ "x${is_problem}" != "x0" ]13 then14 echo "Il y a un probleme de droit sur un repertoire qui ne vous appartient pas"15 echo "vous pouvez utiliser la commande ccc_shspace_modck IGCM pour savoir qui doit mettre a jour les droits"16 echo -n "voulez-vous tout de meme continuer la synchronisation [oui/non]"17 read reponse18 case ${reponse} in19 non|NON|N|n)20 exit21 ;;22 esac23 fi24 8 25 9 echo " Resultat du rsync en dry-run : " … … 60 44 ssh ${loginIDRIS}@ada.idris.fr "setfacl -R -m u::rwx,u:rpsl500:rwx,u:rgzi028:rwx,u:rces009:rwx,u:rgzi023:rwx,u:rces061:rwx,u:rpsl592:rwx,u:rpsl035:rwx,u:rces131:rwx,u:rlmd979:rwx,u:rdzt893:rwx,u:rpsl003:rwx,u:rgzi003:rwx,u:rpsl944:rwx,u:rpsl035:rwx,u:reee451:rwx,u:rfry451:rwx,u:rfry154:rwx,u:romr006:rwx,u:rgzi028:rwx,u:rgzi002:rwx,u:rpsl946:rwx,u:rces452:rwx,u:rces599:rwx,u:rces011:rwx,u:rlmd007:rwx,u:rgzi004:rwx,u:rpsl388:rwx,u:rlmd833:rwx,u:rces311:rwx,u:rdzt001:rwx,u:rgzi017:rwx,u:rces981:rwx,u:rpsl951:rwx,g::r-x,o::r-x,m::rwx /workgpfs/rech/psl/rpsl035/IGCM/" 61 45 46 47 echo "Mise a jour des droits sur les repertoires de donnees (TGCC) " 48 ccc_shspace_chmod userread /ccc/work/cont003/igcmg/igcmg/IGCM 49 is_problem=` ccc_shspace_modck IGCM |grep ccc_shspace_chmod |wc -l` 50 if [ "x${is_problem}" != "x0" ] 51 then 52 echo "Il y a un probleme de droit sur un repertoire qui ne vous appartient pas" 53 echo "vous pouvez utiliser la commande ccc_shspace_modck IGCM pour savoir qui doit mettre a jour les droits" 54 fi -
TOOLS/SYNCHRO_SCRIPTS/synchro_igcmg_to_ciclad
r4093 r4095 2 2 3 3 cd /ccc/work/cont003/igcmg/igcmg 4 echo "Verification des droits des repertoires TGCC"5 ccc_shspace_chmod userread /ccc/work/cont003/igcmg/igcmg/IGCM6 is_problem=` ccc_shspace_modck IGCM |grep ccc_shspace_chmod |wc -l`7 if [ "x${is_problem}" != "x0" ]8 then9 echo "Il y a un probleme de droit sur un repertoire qui ne vous appartient pas"10 echo "vous pouvez utiliser la commande ccc_shspace_modck IGCM pour savoir qui doit mettre a jour les droits"11 echo -n "voulez-vous tout de meme continuer la synchronisation [oui/non]"12 read reponse13 case ${reponse} in14 non|NON|N|n)15 exit16 ;;17 esac18 fi19 4 20 5 echo " Resultat du rsync en dry-run : " … … 39 24 esac 40 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 -
TOOLS/SYNCHRO_SCRIPTS/synchro_igcmg_to_ergon
r4094 r4095 7 7 cd /ccc/work/cont003/igcmg/igcmg 8 8 9 echo "Verification des droits sur les fichiers cote TGCC"10 ccc_shspace_chmod userread /ccc/work/cont003/igcmg/igcmg/IGCM11 is_problem=` ccc_shspace_modck IGCM |grep ccc_shspace_chmod |wc -l`12 if [ "x${is_problem}" != "x0" ]13 then14 echo "Il y a un probleme de droit sur un repertoire qui ne vous appartient pas"15 echo "vous pouvez utiliser la commande ccc_shspace_modck IGCM pour savoir qui doit mettre a jour les droits"16 echo -n "voulez-vous tout de meme continuer la synchronisation [oui/non]"17 read reponse18 case ${reponse} in19 non|NON|N|n)20 exit21 ;;22 esac23 fi24 9 25 10 echo " Resultat du rsync en dry-run : " … … 54 39 ssh ${loginIDRIS}@ergon.idris.fr "setfacl -R -m u::rwx,u:rpsl500:rwx,u:rgzi028:rwx,u:rces009:rwx,u:rces061:rwx,u:rgzi023:rwx,u:rpsl592:rwx,u:rpsl035:rwx,u:rces131:rwx,u:rlmd979:rwx,u:rdzt893:rwx,u:rpsl003:rwx,u:rgzi003:rwx,u:rpsl944:rwx,u:rpsl035:rwx,u:reee451:rwx,u:rfry451:rwx,u:rfry154:rwx,u:romr006:rwx,u:rgzi028:rwx,u:rgzi002:rwx,u:rpsl946:rwx,u:rces452:rwx,u:rces599:rwx,u:rces011:rwx,u:rlmd007:rwx,u:rgzi004:rwx,u:rpsl388:rwx,u:rlmd833:rwx,u:rces311:rwx,u:rdzt001:rwx,u:rgzi017:rwx,u:rces981:rwx,u:rpsl951:rwx,g::r-x,o::r-x,m::rwx /linkhome/rech/psl/rpsl035/IGCM/" 55 40 41 echo "Verification des droits sur les fichiers cote TGCC" 42 ccc_shspace_chmod userread /ccc/work/cont003/igcmg/igcmg/IGCM 43 is_problem=` ccc_shspace_modck IGCM |grep ccc_shspace_chmod |wc -l` 44 if [ "x${is_problem}" != "x0" ] 45 then 46 echo "Il y a un probleme de droit sur un repertoire qui ne vous appartient pas" 47 echo "vous pouvez utiliser la commande ccc_shspace_modck IGCM pour savoir qui doit mettre a jour les droits" 48 fi
Note: See TracChangeset
for help on using the changeset viewer.