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 | |
if ! which wget > /dev/null; then | |
yum install -y wget | |
fi | |
export DOCKER_VERSION=1.3.0 | |
pushd /tmp | |
if [ ! -f /usr/bin/docker ]; then |
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 | |
ZONEID='' # Hosted Zone ID e.g. BJBK35SKMM9OE | |
RECORDSET='' # The CNAME you want to update e.g. hello.example.com | |
TTL=300 # The Time-To-Live of this recordset | |
TYPE='A' # Change to AAAA if using an IPv6 address | |
COMMENT="Auto updating @ `date`" | |
IP=`curl -ss https://icanhazip.com/` # Get the external IP address | |
LOGPATH='/var/log' |