Skip to content

Commit

Permalink
fix(security): Fix crash in entrypoint.sh due to exit code (#4642)
Browse files Browse the repository at this point in the history
Closes #4641

Fix crash caused by grep returning nonzero exit code during CORS configuration dump

Signed-off-by: Bryon Nevis <bryon.nevis@intel.com>
  • Loading branch information
bnevis-i authored Aug 21, 2023
1 parent 4ee02a7 commit cd3e8a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/security-proxy-setup/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ fi
: ${EDGEX_SERVICE_CORSCONFIGURATION_CORSMAXAGE:=`yq -r .all-services.Service.CORSConfiguration.CORSMaxAge /edgex/res/common_configuration.yaml`}

echo "$(date) CORS settings dump ..."
env | grep EDGEX_SERVICE_CORSCONFIGURATION
( env | grep EDGEX_SERVICE_CORSCONFIGURATION ) || true

corssnippet=/etc/nginx/templates/cors.block.$$
touch "${corssnippet}"
Expand Down

0 comments on commit cd3e8a6

Please sign in to comment.