Browse Source

Fix install scripts: echo commands and bail on errors.

accumulation-v4.7
Dave Parker 7 years ago
parent
commit
4838bcaf28
  1. 3
      prism/etc/scripts/prism-install-rhel
  2. 3
      prism/etc/scripts/prism-install-ubuntu

3
prism/etc/scripts/prism-install-rhel

@ -2,6 +2,9 @@
# Script for installation of PRISM on a clean install of RHEL/CentOS/etc Linux.
set -e # Abort if one of the commands fail
set -x # Print commands as they are executed
# Install dependencies: make/gcc/Java
sudo yum update
sudo yum -y install git gcc gcc-c++ java-1.8.0-openjdk-devel

3
prism/etc/scripts/prism-install-ubuntu

@ -2,6 +2,9 @@
# Script for installation of PRISM on a clean install of Ubuntu
set -e # Abort if one of the commands fail
set -x # Print commands as they are executed
# Install dependencies: make/gcc/Java
sudo apt-get update
sudo apt -y install make gcc g++ default-jdk

Loading…
Cancel
Save