Sha256: 77c313920aa3c72f892b60f9eee4f4e04cd889318070f6c4a50f058668384f74
Contents?: true
Size: 1.35 KB
Versions: 2
Compression:
Stored size: 1.35 KB
Contents
#!/usr/bin/env bash # Install BOSH CLI # # Options: # * $UPGRADE - re-install or upgrade gems if already installed # * $INSTALL_BOSH_FROM_SOURCE - install from bosh git repo if [[ $EUID -ne 0 ]]; then echo "ERROR: This script must be run as root" 1>&2 exit 1 fi # Install a gem if $UPGRADE exists or if gem not already installed function install_gem() { gem_name=$1 if [[ ("${UPGRADE}X" != "X") || "$(gem list $gem_name | grep $gem_name)X" == "X" ]]; then gem install $gem_name --no-ri --no-rdoc else echo gem $gem_name already installed fi } if [[ "${INSTALL_BOSH_FROM_SOURCE}X" != "X" ]]; then mkdir -p /var/vcap/store/repos cd /var/vcap/store/repos if [[ -d bosh ]]; then cd bosh git pull origin master else git clone https://github.com/cloudfoundry/bosh.git fi bosh_dir=/var/vcap/store/repos/bosh for project in common cli deployer aws_registry openstack_registry; do cd $bosh_dir/$project/ rm -rf pkg bundle install --without=development test gem build *.gemspec mkdir -p pkg mv *.gem pkg/ gem install pkg/*.gem --no-ri --no-rdoc done else install_gem bosh_cli install_gem bosh_deployer fi if [[ ! -d /var/tmp/bosh ]]; then echo "Symlinking the expected stemcell creation folder into mounted volume..." mkdir -p /var/vcap/store/tmp/bosh ln -s /var/vcap/store/tmp/bosh /var/tmp/bosh fi
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bosh-bootstrap-0.5.1 | lib/bosh-bootstrap/stages/stage_prepare_inception_vm/install_bosh |
bosh-bootstrap-0.5.0 | lib/bosh-bootstrap/stages/stage_prepare_inception_vm/install_bosh |