Do not fail on mkdir for etcd version upgrade

Change-Id: I42af9ba1d92c6ace9f869b159e13a6c27df32f71
This commit is contained in:
Eran Gampel 2015-11-30 15:46:26 +02:00
parent 3db059e9c5
commit cc8d1d7e6e

View File

@ -17,7 +17,7 @@ function nb_db_driver_install_server {
rm -rf $DEST/etcd/db.etcd
if [ ! -f "$DEST/etcd/etcd-$ETCD_VERSION-linux-amd64/etcd" ]; then
echo "Installing etcd server"
mkdir $DEST/etcd
mkdir -p $DEST/etcd
wget https://github.com/coreos/etcd/releases/download/$ETCD_VERSION/etcd-$ETCD_VERSION-linux-amd64.tar.gz -O $DEST/etcd/etcd-$ETCD_VERSION-linux-amd64.tar.gz
tar xzvf $DEST/etcd/etcd-$ETCD_VERSION-linux-amd64.tar.gz -C $DEST/etcd
fi