Skip to content

Commit c716069

Browse files
author
brakenium
committed
Fix config file
1 parent b87de91 commit c716069

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

spk/influxdb/src/service-setup.sh

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
INFLUXD_CONFIG_PATH=$(SYNOPKG_PKGVAR)/config.yml
1+
INFLUXD_CONFIG_PATH=${SYNOPKG_PKGVAR}/config.yml
22
INFLUXD=${SYNOPKG_PKGDEST}/bin/influxd
33

44
export INFLUXD_CONFIG_PATH=${INFLUXD_CONFIG_PATH}
@@ -8,13 +8,14 @@ SVC_BACKGROUND=yes
88
SVC_WRITE_PID=yes
99
SVC_CWD="${SYNOPKG_PKGVAR}"
1010

11-
service_preinst ()
11+
service_postinst ()
1212
{
1313
cat << EOF > "${INFLUXD_CONFIG_PATH}"
14-
http-bind-address: ":${SERVICE_PORT}"
15-
reporting-disabled: true
16-
bolt-path: "${SYNOPKG_PKGVAR}/.influxdbv2/influxd.bolt"
17-
engine-path: "${SYNOPKG_PKGVAR}/.influxdbv2/engine"
18-
sqlite-path: "${SYNOPKG_PKGVAR}/.influxdbv2/influxd.sqlite"
14+
http-bind-address: ":${SERVICE_PORT}"
15+
reporting-disabled: true
16+
bolt-path: "${SYNOPKG_PKGVAR}/.influxdbv2/influxd.bolt"
17+
engine-path: "${SYNOPKG_PKGVAR}/.influxdbv2/engine"
18+
sqlite-path: "${SYNOPKG_PKGVAR}/.influxdbv2/influxd.sqlite"
19+
1920
EOF
2021
}

0 commit comments

Comments
 (0)