Changeset 4095


Ignore:
Timestamp:
10/25/18 15:32:17 (6 years ago)
Author:
acosce
Message:

la mise a jour des droits sur le repertoire IGCM du TGCC est mise a la fin du script

Location:
TOOLS/SYNCHRO_SCRIPTS
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • TOOLS/SYNCHRO_SCRIPTS/synchro_igcmg_to_ada

    r4094 r4095  
    66 
    77cd /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/IGCM 
    11 is_problem=` ccc_shspace_modck IGCM |grep ccc_shspace_chmod |wc -l` 
    12 if [ "x${is_problem}" != "x0" ]  
    13 then 
    14   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 reponse 
    18   case ${reponse} in  
    19   non|NON|N|n) 
    20   exit  
    21   ;;  
    22 esac 
    23 fi  
    248 
    259echo " Resultat du rsync en dry-run : " 
     
    6044ssh ${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/" 
    6145 
     46 
     47echo "Mise a jour des droits sur les repertoires de donnees (TGCC) " 
     48ccc_shspace_chmod userread /ccc/work/cont003/igcmg/igcmg/IGCM 
     49is_problem=` ccc_shspace_modck IGCM |grep ccc_shspace_chmod |wc -l` 
     50if [ "x${is_problem}" != "x0" ]  
     51then 
     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" 
     54fi  
  • TOOLS/SYNCHRO_SCRIPTS/synchro_igcmg_to_ciclad

    r4093 r4095  
    22 
    33cd /ccc/work/cont003/igcmg/igcmg 
    4 echo "Verification des droits des repertoires TGCC" 
    5 ccc_shspace_chmod userread /ccc/work/cont003/igcmg/igcmg/IGCM 
    6 is_problem=` ccc_shspace_modck IGCM |grep ccc_shspace_chmod |wc -l` 
    7 if [ "x${is_problem}" != "x0" ]  
    8 then 
    9   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 reponse 
    13   case ${reponse} in  
    14   non|NON|N|n) 
    15   exit  
    16   ;;  
    17 esac 
    18 fi  
    194 
    205echo " Resultat du rsync en dry-run : " 
     
    3924esac 
    4025 
     26 
     27 
     28echo "Verification des droits des repertoires TGCC" 
     29ccc_shspace_chmod userread /ccc/work/cont003/igcmg/igcmg/IGCM 
     30is_problem=` ccc_shspace_modck IGCM |grep ccc_shspace_chmod |wc -l` 
     31if [ "x${is_problem}" != "x0" ]  
     32then 
     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" 
     35fi  
  • TOOLS/SYNCHRO_SCRIPTS/synchro_igcmg_to_ergon

    r4094 r4095  
    77cd /ccc/work/cont003/igcmg/igcmg 
    88 
    9 echo "Verification des droits sur les fichiers cote TGCC" 
    10 ccc_shspace_chmod userread /ccc/work/cont003/igcmg/igcmg/IGCM 
    11 is_problem=` ccc_shspace_modck IGCM |grep ccc_shspace_chmod |wc -l` 
    12 if [ "x${is_problem}" != "x0" ]  
    13 then 
    14   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 reponse 
    18   case ${reponse} in  
    19   non|NON|N|n) 
    20   exit  
    21   ;;  
    22 esac 
    23 fi  
    249 
    2510echo " Resultat du rsync en dry-run : " 
     
    5439ssh ${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/" 
    5540 
     41echo "Verification des droits sur les fichiers cote TGCC" 
     42ccc_shspace_chmod userread /ccc/work/cont003/igcmg/igcmg/IGCM 
     43is_problem=` ccc_shspace_modck IGCM |grep ccc_shspace_chmod |wc -l` 
     44if [ "x${is_problem}" != "x0" ]  
     45then 
     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" 
     48fi  
Note: See TracChangeset for help on using the changeset viewer.