Created
October 18, 2016 19:54
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Credit: github.com/cwarden