Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion grafana/start.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh

if [ -n $GF_DATABASE_PORT ]; then
if [ -n "$GF_DATABASE_PORT" ]; then
export GF_DATABASE_HOST=$GF_DATABASE_HOST":"$GF_DATABASE_PORT
fi

Expand Down
5 changes: 2 additions & 3 deletions influxdb-init/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ delay=5s
echo "Waiting for influx to become available..."
success=1
for i in $(seq 1 $attempts); do
http get "${INFLUXDB_URL}/ping"
if [ $? -eq 0 ]; then
if http get "${INFLUXDB_URL}/ping"; then
success=0
break
else
Expand All @@ -43,7 +42,7 @@ post () {
}

echo "Creating database \"${MONASCA_DATABASE}\"..."
if [ -z ${INFLUXDB_SHARD_DURATION} ]; then
if [ -z "${INFLUXDB_SHARD_DURATION}" ]; then
post "CREATE DATABASE \"${MONASCA_DATABASE}\" WITH DURATION ${INFLUXDB_DEFAULT_RETENTION} REPLICATION 1 NAME \"default_mon\""
else
post "CREATE DATABASE \"${MONASCA_DATABASE}\" WITH DURATION ${INFLUXDB_DEFAULT_RETENTION} REPLICATION 1 SHARD DURATION ${INFLUXDB_SHARD_DURATION} NAME \"default_mon\""
Expand Down