#!/bin/bash -e

cd $(dirname $0)/../../git-bits-service-release

if [ -e "$VERSION_FILE" ]; then
  export VERSION=$(cat $VERSION_FILE)
  echo "Using VERSION=\"$VERSION\""
else
  echo "The \$VERSION_FILE \"$VERSION_FILE\" does not exist"
  exit 1
fi

bosh -u x -p x target $BOSH_TARGET Lite
bosh login $BOSH_USERNAME $BOSH_PASSWORD

if [ -z "$BLOBSTORE_TYPE" ]
then
  ./scripts/generate-default-bosh-lite-manifest
else
  ./scripts/generate-test-bosh-lite-manifest \
    ./templates/$BLOBSTORE_TYPE.yml \
    ../git-bits-service-ci/manifests/bits-release-network-$BLOBSTORE_TYPE.yml
fi

cp deployments/bits-service-release.yml ../manifests/manifest-$VERSION.yml

#!/bin/bash -e

cd $(dirname $0)/../../git-bits-service-release

if [ -e "$VERSION_FILE" ]; then
  export VERSION=$(cat $VERSION_FILE)
  echo "Using VERSION=\"$VERSION\""
else
  echo "The \$VERSION_FILE \"$VERSION_FILE\" does not exist"
  exit 1
fi

bosh -u x -p x target $BOSH_TARGET Lite
bosh login $BOSH_USERNAME $BOSH_PASSWORD

if [ -z "$BLOBSTORE_TYPE" ]
then
  ./scripts/generate-default-bosh-lite-manifest
else
  ./scripts/generate-test-bosh-lite-manifest \
    ./templates/$BLOBSTORE_TYPE.yml \
    ../git-bits-service-ci/manifest/bits-release-network-$BLOBSTORE_TYPE.yml
fi

cp deployments/bits-service-release.yml ../manifests/manifest-$VERSION.yml

--- 
+++ 
@@ -19,7 +19,7 @@
 else
   ./scripts/generate-test-bosh-lite-manifest \
     ./templates/$BLOBSTORE_TYPE.yml \
-    ../git-bits-service-ci/manifest/bits-release-network-$BLOBSTORE_TYPE.yml
+    ../git-bits-service-ci/manifests/bits-release-network-$BLOBSTORE_TYPE.yml
 fi
 
 cp deployments/bits-service-release.yml ../manifests/manifest-$VERSION.yml
Fix typo in the bits-manifest script

Signed-off-by: Stev Witzel <cecd026af8549620363e324a20eb355bb1518e8c@pivotal.io>
