From a1cc0a87a8cc8f88518d46fb8047cc8a9c0223d7 Mon Sep 17 00:00:00 2001 From: bryan-aguilar <46550959+bryan-aguilar@users.noreply.github.com> Date: Sun, 15 Oct 2023 00:19:52 -0700 Subject: [PATCH] Preserve permissions (#2420) --- tools/ctl/linux/aws-otel-collector-ctl.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/ctl/linux/aws-otel-collector-ctl.sh b/tools/ctl/linux/aws-otel-collector-ctl.sh index fb38780efe..2a9c0e0b84 100644 --- a/tools/ctl/linux/aws-otel-collector-ctl.sh +++ b/tools/ctl/linux/aws-otel-collector-ctl.sh @@ -84,7 +84,7 @@ aoc_config_local_uri() { # Safe to run as this will not overwrite a file if one exists in default location already. aoc_ensure_default_config() { if [ ! -f $CONFDIR/config.yaml ]; then - cp $DFT_CONFDIR/.config.yaml $CONFDIR/config.yaml + cp -p $DFT_CONFDIR/.config.yaml $CONFDIR/config.yaml fi }