Skip to content

Instantly share code, notes, and snippets.

@yatesr
Last active March 24, 2016 13:31
Show Gist options
  • Save yatesr/fce39e9dfec5d9d196cc to your computer and use it in GitHub Desktop.
Save yatesr/fce39e9dfec5d9d196cc to your computer and use it in GitHub Desktop.
Script for installing OHIE Datim Node
#!/bin/sh
# This script will install the OpenHIE Datim Node distro. It is suggested to run this only on
# a clean Ubuntu 14.04 64-bit system.
# Add required ppas. Note: these will change for the official release.
sudo add-apt-repository -y ppa:webupd8team/java
sudo add-apt-repository -y ppa:openhie/datim
sudo apt-get update
# Set prompts to preconfigured answers in debconf.
echo openhim-console openhim-console/selecthost string 127.0.0.1 | sudo debconf-set-selections
echo openhim-console openhim-console/selectport string 5008 | sudo debconf-set-selections
echo openinfoman openinfoman/memsize string 4g | sudo debconf-set-selections
echo oracle-java8-installer shared/accepted-oracle-license-v1-1 boolean true | sudo debconf-set-selections
# Install the ohie-datim-node package and suppress prompts
sudo DEBIAN_FRONTEND=noninteractive apt-get -y install ohie-datim-node oracle-java8-installer
# Run config script
sudo datim-config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment