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
Add-Content 'c:\script.log' (date) | |
# This fixes a bug in AWS startup script processing. | |
# 169.254.169.254 is for metadata service | |
# 169.254.169.250 is for KmsInstanceVpc1 | |
# 169.254.169.251 is for KmsInstanceVpc2 | |
$ipAddrs = @("169.254.169.254/32", "169.254.169.250/32", "169.254.169.251/32") | |
$sleepTime = 1 |
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
## Setup java | |
if [ `uname -m` == 'x86_64' ]; then | |
PATH="/usr/lib64/jvm/java-7-oracle/jre/bin/" | |
JAVA_HOME="/usr/lib64/jvm/java-7-oracle/" | |
else | |
PATH="/usr/lib/jvm/java-7-oracle/jre/bin/" | |
JAVA_HOME="/usr/lib/jvm/java-7-oracle/" | |
fi |