Index: BOL/Multi_atlas/install_multi_atlas.sh
===================================================================
--- BOL/Multi_atlas/install_multi_atlas.sh	(revision 4312)
+++ BOL/Multi_atlas/install_multi_atlas.sh	(revision 4313)
@@ -28,12 +28,15 @@
 # CICLAD
 if [ ${hostname:0:5} = cicla ] ; then
+echo hostname-0-5 is ${hostname:0:5}
 # chemin vers le rep dods de base
 DODSDIR=/thredds/ipsl
 # Rep ou sont stockes les multiatlas
 MULTIDIR=$DODSDIR/$login/lmdz/MultiSimu
+if [ ! -d $MULTIDIR ] ; then mkdir -p $MULTIDIR ; fi
 # Rep ou se trouve les sorties cmorizees
 ROOT_SIM_DIR=$DODSDIR/$login/lmdz/SE/ORIG
 ROOT_OBS_DIR=$DODSDIR/fabric/lmdz/SE/CMOR/OBS
-if [ ! -d $MULTIDIR ] ; then mkdir -p $MULTIDIR ; fi
+
+\rm entete.sh
 # Def entete des jobs 
 cat <<eod >> entete.sh
@@ -54,8 +57,7 @@
 DODSDIR=$DODSDIR
 eod
-fi
-
 # CLIMSERV
-if [ ${hostname:0:5} = camel ] ; then
+elif [ ${hostname:0:5} = camel ] ; then
+echo hostname-0-5 is ${hostname:0:5}
 DODSDIR=/thredds/ipsl
 cat <<eod > entete.sh
@@ -75,5 +77,6 @@
 
 # IRENE
-if [ ${hostname:0:5} = irene ] ; then
+elif [ ${hostname:0:5} = irene ] ; then
+echo hostname-0-5 is ${hostname:0:5}
 cat <<eod > definerep.sh
 MAIN_SE=
@@ -101,8 +104,8 @@
 submit=ccc_msub
 eod
-fi
 
 # JEAN-ZAY
-if [ ${hostname:0:5} = jean- ] ; then
+elif [ ${hostname:0:5} = jean- ] ; then
+echo hostname-0-5 is ${hostname:0:5}
 cat <<eod > definerep.sh
 MAIN_SE=
@@ -172,6 +175,4 @@
 \mv make_atlas.sh atlas/.
 
-fi
-
 cp Utils/lmdz_SE0.py tmp0.py
 sed -e s:ROOT_SIM_DIR:$ROOT_SIM_DIR:g tmp0.py > tmp.py
