Skip to content

Instantly share code, notes, and snippets.

@saidach
Created November 5, 2017 23:13
Show Gist options
  • Save saidach/3f5a33902d074dc5936280d6fc2a0c5f to your computer and use it in GitHub Desktop.
Save saidach/3f5a33902d074dc5936280d6fc2a0c5f to your computer and use it in GitHub Desktop.
found=`fgrep -c 'NEWRELIC_INFRA="1"' /opt/elasticbeanstalk/support/envvars`
echo $found
if [ $found -eq 1 ]; then
echo "uninstalling newrelic-infra if already installed..."
else
echo 'NEWRELIC_INFRA is set'
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment