Skip to content

Instantly share code, notes, and snippets.

@smford22
Last active June 14, 2018 16:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save smford22/2418c7b69889340569844eb8d631a7a5 to your computer and use it in GitHub Desktop.
Save smford22/2418c7b69889340569844eb8d631a7a5 to your computer and use it in GitHub Desktop.
National Parks -- run hook
#!/bin/bash
{{#if bind.database ~}}
export CATALINA_OPTS="-DMONGODB_SERVICE_HOST={{bind.database.first.sys.ip}} -DMONGODB_SERVICE_PORT={{bind.database.first.cfg.port}} -DMONGODB_DATABASE={{cfg.mongodb_database}}"
{{/if ~}}
export JAVA_HOME="{{pkgPathFor "core/jre8"}}"
export TOMCAT_HOME="{{pkgPathFor "core/tomcat8"}}/tc"
cp {{pkg.path}}/*.war $TOMCAT_HOME/webapps
exec ${TOMCAT_HOME}/bin/catalina.sh run
@qubitrenegade
Copy link

this should be:

export JAVA_HOME={{pkg_path_for core/jre8}}
export TOMCAT_HOME="{{pkg_path_for core/tomcat8}}/tc"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment