From af542c4caea1f84adc7783833f428e68b23e1d97 Mon Sep 17 00:00:00 2001 From: sbadla1 Date: Thu, 8 Sep 2022 13:07:26 -0700 Subject: [PATCH] change mv to cp to maintain file context --- scripts/entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/entrypoint.sh b/scripts/entrypoint.sh index 40a2aeb37b..9857840773 100755 --- a/scripts/entrypoint.sh +++ b/scripts/entrypoint.sh @@ -196,7 +196,7 @@ if [[ "$ENABLE_BANDWIDTH_PLUGIN" == "true" ]]; then mv "$TMP_AWS_BW_CONFLIST_FILE" "$TMP_AWS_CONFLIST_FILE" fi -mv "$TMP_AWS_CONFLIST_FILE" "$HOST_CNI_CONFDIR_PATH/10-aws.conflist" +cp "$TMP_AWS_CONFLIST_FILE" "$HOST_CNI_CONFDIR_PATH/10-aws.conflist" && rm -rf "$TMP_AWS_CONFLIST_FILE" log_in_json info "Successfully copied CNI plugin binary and config file."