Skip to content

Instantly share code, notes, and snippets.

@velmuruganvelayutham
Last active August 7, 2019 17:41
Show Gist options
  • Save velmuruganvelayutham/2f33feeea3d967e563eb3928028cbd7b to your computer and use it in GitHub Desktop.
Save velmuruganvelayutham/2f33feeea3d967e563eb3928028cbd7b to your computer and use it in GitHub Desktop.
setup-snowflake-cache-beanstalk - ebextensions
container_commands:
01_setup_snowflake_cache:
command: sudo sh .ebextensions/setup-snowflake.sh > /tmp/snowflake-output.txt 2>&1
ignoreErrors: false
#!/usr/bin/env bash
set -x
echo "setting the .cache directory for snowflake-jdbc"
sudo rm -rf /usr/share/tomcat8/.cache/
sudo mkdir -p /usr/share/tomcat8/.cache/snowflake/
sudo chmod -R 777 /usr/share/tomcat8/.cache/
sudo chown -R tomcat:tomcat /usr/share/tomcat8/.cache/
sudo service tomcat8 restart
echo ".cache directory is setup successfully"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment