-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathupdate-amazon-tools.sh
More file actions
executable file
·34 lines (30 loc) · 959 Bytes
/
update-amazon-tools.sh
File metadata and controls
executable file
·34 lines (30 loc) · 959 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/bash -
#===============================================================================
#
# FILE: update-amazon-tools.sh
#
# USAGE: update-amazon-tools.sh
#
# DESCRIPTION: This script updates the Amazon EC2 AMI tools as well as my
# scripts for creating virtual host and handling Meteor
# deployments.
# OPTIONS: ---
# REQUIREMENTS: Git, Yum, aws-amitools-ec2
# BUGS: ---
# NOTES: ---
# AUTHOR: Jason White ([email protected]),
# ORGANIZATION: @iDoAWS
# CREATED: 04/28/2016 23:59
# REVISION: 001
#===============================================================================
# Strict mode
set -euo pipefail
IFS=$'\n\t'
echo " + Updating EC2 AMI tools"
sudo yum update -y aws-amitools-ec2
echo " + Updated EC2 AMI tools"
echo " + Updating amazon-scripts by @iDoAWS/@iDoMeteor"
cd /usr/local/bin
sudo git pull
cd $OLDPWD
echo " + Updated amazon-scripts"