Skip to content

Commit 1321f0d

Browse files
author
osmufe
authored
Update init-influxdb.sh
Loop when try to create the database with parameters : Example : {code} + for i in '{30..0}' + influx -host 127.0.0.1 -port 8086 -execute 'CREATE DATABASE database' + echo 'influxdb init process in progress...' influxdb init process in progress... + sleep 1 + for i in '{30..0}' + influx -host 127.0.0.1 -port 8086 -execute 'CREATE DATABASE database' influxdb init process in progress... + echo 'influxdb init process in progress...' + sleep 1 {code}
1 parent 57a5ac9 commit 1321f0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

influxdb/1.5/alpine/init-influxdb.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ INIT_USERS=$([ ! -z "$AUTH_ENABLED" ] && [ ! -z "$INFLUXDB_ADMIN_USER" ] && echo
1414
if ( [ ! -z "$INIT_USERS" ] || [ ! -z "$INFLUXDB_DB" ] || [ "$(ls -A /docker-entrypoint-initdb.d 2> /dev/null)" ] ) && [ ! "$(ls -d /var/lib/influxdb/meta 2>/dev/null)" ]; then
1515

1616
INIT_QUERY=""
17-
CREATE_DB_QUERY="CREATE DATABASE $INFLUXDB_DB"
17+
CREATE_DB_QUERY="CREATE DATABASE \"$INFLUXDB_DB\""
1818

1919
if [ ! -z "$INIT_USERS" ]; then
2020

0 commit comments

Comments
 (0)