Last active
August 7, 2019 17:41
-
-
Save velmuruganvelayutham/2f33feeea3d967e563eb3928028cbd7b to your computer and use it in GitHub Desktop.
setup-snowflake-cache-beanstalk - ebextensions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
container_commands: | |
01_setup_snowflake_cache: | |
command: sudo sh .ebextensions/setup-snowflake.sh > /tmp/snowflake-output.txt 2>&1 | |
ignoreErrors: false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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