Updated the script to work my amazon ec2 server