Sha256: 9be8d6c7fb41cef22d27366a82e42425cc6beb55c8e8333eb8606165b9546c0c
Contents?: true
Size: 1.39 KB
Versions: 3
Compression:
Stored size: 1.39 KB
Contents
#!/bin/bash set -e echo "Updating package list" sudo apt-get update > /dev/null echo "Ensuring curl is available" sudo apt-get install -y curl > /dev/null echo "Setting up RVM" user=$1 [ -z "$user" ] && user="ubuntu" test -d /usr/local/rvm || curl -L https://get.rvm.io | sudo bash -s stable test -e /usr/local/rvm || sudo tee /etc/profile.d/rvm.sh > /dev/null <<RVMSH_CONTENT [[ -s "/usr/local/rvm/scripts/rvm" ]] && source "/usr/local/rvm/scripts/rvm" RVMSH_CONTENT test -x /usr/local/rvm || sudo chmod +x /etc/profile.d/rvm.sh grep "^$user:" /etc/passwd > /dev/null || sudo useradd -m $user -G sudo,rvm,admin -s /bin/bash test -e /etc/rvmrc || sudo tee /etc/rvmrc > /dev/null <<RVMRC_CONTENTS rvm_install_on_use_flag=1 rvm_trust_rvmrcs_flag=1 rvm_gemset_create_on_use_flag=1 RVMRC_CONTENTS echo "Detecting RVM requirements" bash -lc 'rvm requirements' | tee /tmp/rvm-requirements > /dev/null packages=`grep " ruby: /usr/bin/apt-get install" /tmp/rvm-requirements | sed "s/ ruby: \/usr\/bin\/apt-get install //g"` echo "Detected RVM requirements: $packages" selections=`dpkg --get-selections` for package in $packages do if ! echo "$selections" | grep "^$package\s" > /dev/null then to_install="$to_install $package" fi done if [ -z "$to_install" ] then echo "Satisfied RVM requirements" else echo "Installing missing RVM requirements: $to_install" sudo apt-get install -y $to_install fi
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
soloist-1.0.1 | script/bootstrap.sh |
soloist-rvm-0.0.1 | script/bootstrap.sh |
soloist-1.0.0 | script/bootstrap.sh |