Skip to content

Commit f368139

Browse files
committed
Updated setup script for running on AWS headnode
1 parent 327ee2f commit f368139

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

swift-cloud-tutorial/setup.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ then
1919
export JAVA=/usr/local/bin/jdk1.7.0_51/bin
2020
export SWIFT=/usr/local/bin/swift-0.95/bin
2121
export PATH=$JAVA:$SWIFT:$PATH
22+
elif [[ ! -z $(curl -s http://169.254.169.254/1.0/) ]];
23+
then
24+
# We are on amazon
25+
echo "On amazon"
26+
# Path variables are already set.
2227
else # Running on local machine
2328
# Check if the variable PUBLIC_ADDRESS is set
2429
if [[ ! -z $PUBLIC_ADDRESS ]]

0 commit comments

Comments
 (0)