X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;ds=inline;f=mcp%2Fscripts%2Flog.sh;h=8bfd0d5539631dd4d5c7d3e115edf3e918dcb138;hb=918c1273f7d0b3fafb6b1d2fce1f6f8a8384e014;hp=8bc7c4422a60b5e6d18d554b9296dda67f82280e;hpb=45b22fab76f84cdbf71a6693dc42f24edaa4334e;p=fuel.git diff --git a/mcp/scripts/log.sh b/mcp/scripts/log.sh index 8bc7c4422..8bfd0d553 100755 --- a/mcp/scripts/log.sh +++ b/mcp/scripts/log.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -e ############################################################################## # Copyright (c) 2017 Mirantis Inc., Enea AB and others. # All rights reserved. This program and the accompanying materials @@ -10,12 +10,14 @@ # Collect /var/log from all cluster nodes via Salt Master # +# shellcheck disable=SC1090 +[ -n "${SSH_OPTS}" ] || source "$(dirname "${BASH_SOURCE[0]}")/globals.sh" + +CI_DEBUG=${CI_DEBUG:-0}; [[ "${CI_DEBUG}" =~ (false|0) ]] || set -x DEPLOY_LOG=$1 OPNFV_TMP_LOG="opnfv_fuel_logs" [ -n "${DEPLOY_LOG}" ] || exit 0 -# shellcheck disable=SC1091 -[ -n "${SSH_OPTS}" ] || source globals.sh # ssh to cfg01 # shellcheck disable=SC2086,2087