Setup data before changing ip
add a manual entry for the dns in /etc/hosts on aws deploy
One more tweak to jenkins-geonode-aws.sh
How about we use sudo when trying to write to /etc/hosts
Try with su - -c