Skip to content

Commit

Permalink
[patch] Only call db2apply when there is a change needed
Browse files Browse the repository at this point in the history
  • Loading branch information
whitfiea committed Nov 29, 2024
1 parent 8f1aa56 commit 2f144eb
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,12 @@ spec:
RETRIES=${1:-5}
RETRY_DELAY_SECONDS=${2:-30}
mas-devops-db2-validate-config --mas-instance-id ${MAS_INSTANCE_ID} --mas-app-id ${MAS_APP_ID} --log-level DEBUG || rc=$?
if [[ "$rc" == "0" ]]; then
echo "... db2 config already matches expected config, returning without calling apply-db2cfg-settings"
return 0
fi
for (( c=1; c<="${RETRIES}"; c++ )); do
echo ""
echo "... attempt ${c} of ${RETRIES}"
Expand Down

0 comments on commit 2f144eb

Please sign in to comment.