Skip to content

Instantly share code, notes, and snippets.

@tomrgio
Created October 16, 2018 08:50
Show Gist options
  • Save tomrgio/057d4ceb0b28cad60dcc833db8b43f7b to your computer and use it in GitHub Desktop.
Save tomrgio/057d4ceb0b28cad60dcc833db8b43f7b to your computer and use it in GitHub Desktop.
#!/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