Skip to content

Instantly share code, notes, and snippets.

@abh1nav
Created October 18, 2016 19:54
Show Gist options
  • Save abh1nav/c5bb51d5043a0d27e8ca4e0feea4bc03 to your computer and use it in GitHub Desktop.
Save abh1nav/c5bb51d5043a0d27e8ca4e0feea4bc03 to your computer and use it in GitHub Desktop.
Because AWS CodeDeploy agent installer doesn't work on 16.04 LTS and AWS can't be bothered to fix it
#!/bin/bash
apt-get -y install ruby python-pip wget equivs gdebi-core
cd /tmp
cat > ruby2.0 <<EOF
Section: misc
Priority: optional
Standards-Version: 3.9.2
Package: ruby2.0-dummy
Provides: ruby2.0
EOF
equivs-build ruby2.0
dpkg -i ruby2.0-dummy_1.0_all.deb
ln -nsf /usr/bin/ruby2.3 /usr/bin/ruby2.0
wget https://aws-codedeploy-us-east-1.s3.amazonaws.com/latest/install
chmod +x ./install
./install auto
@abh1nav
Copy link
Author

abh1nav commented Oct 18, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment