Don't fail if direcotory exists when starting up cluster
Change-Id: I1a95e4144c5fd9ed68dc8ba79f1d47a1055fb6f1
diff --git a/dual-master/cf-cluster.yml b/dual-master/cf-cluster.yml
index 011a2f5..ff1f187 100644
--- a/dual-master/cf-cluster.yml
+++ b/dual-master/cf-cluster.yml
@@ -165,8 +165,8 @@
`mount -t nfs4 -o nfsvers=4.1,hard,timeo=600,retrans=2 $DIR_SRC:/ $DIR_TGT >> /home/ec2-user/echo.res` \
&& s=0 && break || s=$? && sleep 5;
done; (exit $s)
- mkdir $DIR_TGT/git
- mkdir $DIR_TGT/high-availability
+ mkdir -p $DIR_TGT/git
+ mkdir -p $DIR_TGT/high-availability
chown -R 1000:1000 $DIR_TGT
cp -p /etc/fstab /etc/fstab.back-$(date +%F)
echo -e \"$DIR_SRC:/ \t\t $DIR_TGT \t\t nfs \t\t defaults \t\t 0 \t\t 0\" | tee -a /etc/fstab