Sha256: bc2b81e8db3e6e8bc170f5822ae728484d5e8e3a7d006648e035a93663b47cdb

Contents?: true

Size: 587 Bytes

Versions: 7

Compression:

Stored size: 587 Bytes

Contents

#!/usr/bin/env bash

# Validate that BOSH deployer is ready

if [[ $EUID -ne 0 ]]; then
  echo "ERROR: This script must be run as root" 1>&2
  exit 1
fi

echo "Testing for 'bosh micro deploy' command..."

bosh_output=$(bosh --no-color help micro)
if [[ "$(echo $bosh_output | grep 'micro deploy')" == "" ]]; then
  echo "Failed to install 'bosh micro deploy'. Please investigate issue and report root cause so we can fix it."
  echo "Output of 'bosh --no-color help micro':"
  echo $bosh_output
  exit 1
else
  echo "Successfully installed bosh deployer (bosh micro deploy)"
  exit 0
fi

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
bosh-bootstrap-0.8.1 lib/bosh-bootstrap/stages/stage_prepare_inception_vm/validate_bosh_deployer
bosh-bootstrap-0.8.0 lib/bosh-bootstrap/stages/stage_prepare_inception_vm/validate_bosh_deployer
bosh-bootstrap-0.7.1 lib/bosh-bootstrap/stages/stage_prepare_inception_vm/validate_bosh_deployer
bosh-bootstrap-0.7.0 lib/bosh-bootstrap/stages/stage_prepare_inception_vm/validate_bosh_deployer
bosh-bootstrap-0.6.0 lib/bosh-bootstrap/stages/stage_prepare_inception_vm/validate_bosh_deployer
bosh-bootstrap-0.5.1 lib/bosh-bootstrap/stages/stage_prepare_inception_vm/validate_bosh_deployer
bosh-bootstrap-0.5.0 lib/bosh-bootstrap/stages/stage_prepare_inception_vm/validate_bosh_deployer