From 17f495c444cb61c6989420f0368f6450e0ccfa57 Mon Sep 17 00:00:00 2001 From: Adam Outler Date: Sat, 6 Dec 2025 07:38:26 -0500 Subject: [PATCH] Change copy command to install with permissions --- .../production-filesystem/entrypoint.d/15-first-run-config.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install/production-filesystem/entrypoint.d/15-first-run-config.sh b/install/production-filesystem/entrypoint.d/15-first-run-config.sh index 4f906eb7..71a7dd64 100755 --- a/install/production-filesystem/entrypoint.d/15-first-run-config.sh +++ b/install/production-filesystem/entrypoint.d/15-first-run-config.sh @@ -7,7 +7,7 @@ if [ ! -f "${NETALERTX_CONFIG}/app.conf" ]; then >&2 echo "ERROR: Failed to create config directory ${NETALERTX_CONFIG}" exit 1 } - cp /app/back/app.conf "${NETALERTX_CONFIG}/app.conf" || { + install -m 600 -o ${NETALERTX_USER} -g ${NETALERTX_GROUP} /app/back/app.conf "${NETALERTX_CONFIG}/app.conf" || { >&2 echo "ERROR: Failed to copy default config to ${NETALERTX_CONFIG}/app.conf" exit 2 }