-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
06e1350
commit 05202ff
Showing
1 changed file
with
12 additions
and
15 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,13 @@ | ||
#!/bin/bash | ||
apt update | ||
# apt install ruby -y | ||
# gem install bundler | ||
# git clone https://github.com/aws/aws-codedeploy-agent.git /opt/codedeploy-agent | ||
# sudo chown -R root.root /opt/codedeploy-agent | ||
# sudo chmod 644 /opt/codedeploy-agent/conf/codedeployagent.yml | ||
# sudo chmod 755 /opt/codedeploy-agent/init.d/codedeploy-agent | ||
# sudo chmod 644 /opt/codedeploy-agent/init.d/codedeploy-agent.service | ||
# cd /opt/codedeploy-agent | ||
# bundle install --system | ||
# rake clean && rake | ||
# cp /opt/codedeploy-agent/init.d/codedeploy-agent /etc/init.d/ | ||
# systemctl daemon-reload | ||
# systemctl start codedeploy-agent | ||
# systemctl enable codedeploy-agent | ||
|
||
sudo su | ||
apt-get update | ||
apt-get install -y ruby | ||
wget https://aws-codedeploy-us-east-1.s3.amazonaws.com/releases/codedeploy-agent_1.0-1.1597_all.deb | ||
mkdir codedeploy-agent_1.0-1.1597_ubuntu20 | ||
dpkg-deb -R codedeploy-agent_1.0-1.1597_all.deb codedeploy-agent_1.0-1.1597_ubuntu20 | ||
sed 's/2.0/2.7/' -i ./codedeploy-agent_1.0-1.1597_ubuntu20/DEBIAN/control | ||
dpkg-deb -b codedeploy-agent_1.0-1.1597_ubuntu20 | ||
dpkg -i codedeploy-agent_1.0-1.1597_ubuntu20.deb | ||
systemctl start codedeploy-agent | ||
systemctl enable codedeploy-agent |