Skip to content

Commit 6ee9064

Browse files
authored
Merge pull request #1332 from adamoutler/patch-7
Change copy command to install with permissions
2 parents e7f2556 + 2c75285 commit 6ee9064

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

install/production-filesystem/entrypoint.d/15-first-run-config.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ if [ ! -f "${NETALERTX_CONFIG}/app.conf" ]; then
77
>&2 echo "ERROR: Failed to create config directory ${NETALERTX_CONFIG}"
88
exit 1
99
}
10-
cp /app/back/app.conf "${NETALERTX_CONFIG}/app.conf" || {
11-
>&2 echo "ERROR: Failed to copy default config to ${NETALERTX_CONFIG}/app.conf"
10+
install -m 600 -o ${NETALERTX_USER} -g ${NETALERTX_GROUP} /app/back/app.conf "${NETALERTX_CONFIG}/app.conf" || {
11+
>&2 echo "ERROR: Failed to deploy default config to ${NETALERTX_CONFIG}/app.conf"
1212
exit 2
1313
}
1414
RESET=$(printf '\033[0m')

install/production-filesystem/entrypoint.d/20-first-run-db.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,9 @@ CREATE TABLE Devices (
9797
devSite TEXT,
9898
devSSID TEXT,
9999
devSyncHubNode TEXT,
100-
devSourcePlugin TEXT
101-
, "devCustomProps" TEXT);
100+
devSourcePlugin TEXT,
101+
devFQDN TEXT,
102+
"devCustomProps" TEXT);
102103
CREATE TABLE IF NOT EXISTS "Settings" (
103104
"setKey" TEXT,
104105
"setName" TEXT,

0 commit comments

Comments
 (0)