creating influxdb config file during startup.

pull/228/head
Jason Kulatunga 3 years ago
parent a60edfff26
commit abe7a16507

@ -1,4 +1,17 @@
#!/usr/bin/with-contenv bash #!/usr/bin/with-contenv bash
mkdir -p /scrutiny/influxdb/
if [ -f "/scrutiny/influxdb/config.yaml" ]; then
echo "influxdb config file already exists. skipping."
else
cat << 'EOF' > /scrutiny/influxdb/config.yaml
bolt-path: /scrutiny/influxdb/influxd.bolt
engine-path: /scrutiny/influxdb/engine
http-bind-address: ":8086"
reporting-disabled: true
EOF
fi
echo "starting influxdb" echo "starting influxdb"
influxd run influxd run

@ -1,4 +0,0 @@
bolt-path: /scrutiny/influxdb/influxd.bolt
engine-path: /scrutiny/influxdb/engine
http-bind-address: ":8086"
reporting-disabled: true
Loading…
Cancel
Save