mirror of
https://github.com/timokz/flutter-vienna-hackathon-25.git
synced 2025-11-09 05:24:20 +01:00
24 lines
514 B
Bash
24 lines
514 B
Bash
#!/bin/bash
|
|
echo "Update yum packages"
|
|
yum update -y
|
|
|
|
# Install yum packages
|
|
echo "Installing ruby"
|
|
yum install ruby -y
|
|
echo "Installing wget"
|
|
yum install wget -y
|
|
|
|
# Install CodeDeploy agent
|
|
echo "Installing CodeDeploy agent"
|
|
cd /home/ec2-user
|
|
wget https://aws-codedeploy-us-west-2.s3.us-west-2.amazonaws.com/latest/install
|
|
chmod +x ./install
|
|
./install auto
|
|
rm install
|
|
|
|
# Set runmode
|
|
echo "Setting runmode"
|
|
echo ${runmode} > /home/ec2-user/runmode
|
|
chown ec2-user:ec2-user /home/ec2-user/runmode
|
|
|
|
echo "Setup done"
|