Skip to content

Commit 9dbf2be

Browse files
committed
put port 8080 in clickable link to avoid browser warnings #4990
1 parent 36df01f commit 9dbf2be

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

scripts/installer/ec2-create-instance.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,12 @@ sed -i "s/branch:/branch: $BRANCH_NAME/" dataverse/defaults/main.yml
8080
ansible-playbook -i dataverse/inventory dataverse/dataverse.pb --connection=local
8181
EOF
8282

83+
#Port 8080 has been added because Ansible puts a redirect in place
84+
#from HTTP to HTTPS and the cert is invalid (self-signed), forcing
85+
#the user to click through browser warnings.
86+
CLICKABLE_LINK="http://${PUBLIC_DNS}:8080"
8387
echo "To ssh into the new instance:"
8488
echo "ssh -i $PEM_FILE $USER_AT_HOST"
85-
echo "Branch \"$BRANCH_NAME\" has been deployed to http://${PUBLIC_DNS}"
89+
echo "Branch \"$BRANCH_NAME\" has been deployed to $CLICKABLE_LINK"
8690
echo "When you are done, please terminate your instance with:"
8791
echo "aws ec2 terminate-instances --instance-ids $INSTANCE_ID"

0 commit comments

Comments
 (0)