Skip to content

Commit

Permalink
Reset +e prior to autodeployer deploys else second deploy fails (#1057)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmontalvo3 committed Nov 7, 2018
1 parent 30c1412 commit 531b203
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/scripts/autodeployer/do-deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ if [ $? -eq 0 ]; then
source $NOTIFY "$DEPLOY_TYPE complete" "good"
else
source $NOTIFY "$DEPLOY_TYPE attempt failed. Retrying..." "warning"

# sourcing scripts above may reset -e. Explicitly set prior to meza deploy
set +e
meza deploy "$m_environment" $DEPLOY_ARGS \
> /opt/data-meza/logs/${LOG_PREFIX}`date "+%Y%m%d%H%M%S"`.log 2>&1

Expand All @@ -98,6 +101,7 @@ else
fi
fi

set -e



0 comments on commit 531b203

Please sign in to comment.