Skip to content

Instantly share code, notes, and snippets.

@smford22
Last active June 13, 2018 12:54
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/a6cb9dc9df15e04a8a115dba3964a3ca to your computer and use it in GitHub Desktop.
Save smford22/a6cb9dc9df15e04a8a115dba3964a3ca to your computer and use it in GitHub Desktop.
init with binds
#!/bin/bash
ln -vsf {{pkg.svc_config_path}}/conf_server.xml {{pkgPathFor "core/tomcat8"}}/tc/conf/server.xml
{{#if bind.database ~}}
{{pkgPathFor "core/mongo-tools"}}/bin/mongoimport --drop -d demo -c nationalparks --type json --jsonArray --file {{pkg.path}}/national-parks.json --host={{bind.database.first.sys.ip}} --port={{bind.database.first.cfg.port}}
{{/if ~}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment