X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=tools%2Fcloud-configs.sh;h=94857b8eef8bfc0c4c5accb2c27c7c15e3e2d4c3;hb=8fcb874a6e5ec52b4a6ac80cb7f34c7baccd8c17;hp=acce8c104e35c80b3c792712a4f83f1f79387fca;hpb=2d1ee64f68cd36284bd180559e91b84a8c10dd3c;p=icn.git diff --git a/tools/cloud-configs.sh b/tools/cloud-configs.sh index acce8c1..94857b8 100644 --- a/tools/cloud-configs.sh +++ b/tools/cloud-configs.sh @@ -1,4 +1,5 @@ -!/bin/bash +#!/usr/bin/env bash +set -eu -o pipefail # This script is called by cloud-init on worker nodes # What does this script do: @@ -25,7 +26,7 @@ for module in $MODULES_LIST; do tar xvzf $filename if [ -d $module ]; then echo "Installing module $module ..." - pushd $module + pushd $module bash ./install.sh popd rm -rf $module