Created
August 11, 2012 05:33
-
-
Save khaong/3321462 to your computer and use it in GitHub Desktop.
AWS Training - 2nd instance launch userdata.sh
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 | |
exec > >(tee /var/log/user-data.log/logger -t user-data -s 2>/dev/console) 2>&1 | |
dpkg --configure -a | |
wget http://bit.ly/aws-ec2id -O aws-ec2id | |
nohup bash aws-ec2id & |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment