From 17f495c444cb61c6989420f0368f6450e0ccfa57 Mon Sep 17 00:00:00 2001 From: Adam Outler Date: Sat, 6 Dec 2025 07:38:26 -0500 Subject: [PATCH 1/3] 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 } From ecb5c1455b85ddb5e225708ee938e872f51feb82 Mon Sep 17 00:00:00 2001 From: Adam Outler Date: Sat, 6 Dec 2025 13:01:47 +0000 Subject: [PATCH 2/3] Add missing field to initial db --- .../production-filesystem/entrypoint.d/20-first-run-db.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/install/production-filesystem/entrypoint.d/20-first-run-db.sh b/install/production-filesystem/entrypoint.d/20-first-run-db.sh index 905efcfb..de4d7b78 100755 --- a/install/production-filesystem/entrypoint.d/20-first-run-db.sh +++ b/install/production-filesystem/entrypoint.d/20-first-run-db.sh @@ -97,8 +97,9 @@ CREATE TABLE Devices ( devSite TEXT, devSSID TEXT, devSyncHubNode TEXT, - devSourcePlugin TEXT - , "devCustomProps" TEXT); + devSourcePlugin TEXT, + devFQDN TEXT, + "devCustomProps" TEXT); CREATE TABLE IF NOT EXISTS "Settings" ( "setKey" TEXT, "setName" TEXT, From 2c75285148fab6a77b1d7678ab1a84350228aa36 Mon Sep 17 00:00:00 2001 From: Adam Outler Date: Sat, 6 Dec 2025 13:05:47 +0000 Subject: [PATCH 3/3] Coderabit nitpick. --- .../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 71a7dd64..1ca596d2 100755 --- a/install/production-filesystem/entrypoint.d/15-first-run-config.sh +++ b/install/production-filesystem/entrypoint.d/15-first-run-config.sh @@ -8,7 +8,7 @@ if [ ! -f "${NETALERTX_CONFIG}/app.conf" ]; then exit 1 } 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" + >&2 echo "ERROR: Failed to deploy default config to ${NETALERTX_CONFIG}/app.conf" exit 2 } RESET=$(printf '\033[0m')