sample/bin/aws-codedeploy-samples/conf-mgmt/salt/local-only/deploy_hooks/verify_service.sh
#!/bin/bash
# Deploy hooks are run via absolute path, so taking dirname of this script will give us the path to
# our deploy_hooks directory.
. $(dirname $0)/../application_vars.sh
result=$(curl -s http://localhost/salt/index.html)
if [[ "$result" =~ "Hello World" ]]; then
exit 0
else
exit 1
fi