diff --git a/influxdb/1.5/alpine/init-influxdb.sh b/influxdb/1.5/alpine/init-influxdb.sh index c2097ecd8..fde0ec017 100755 --- a/influxdb/1.5/alpine/init-influxdb.sh +++ b/influxdb/1.5/alpine/init-influxdb.sh @@ -14,7 +14,7 @@ INIT_USERS=$([ ! -z "$AUTH_ENABLED" ] && [ ! -z "$INFLUXDB_ADMIN_USER" ] && echo 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 INIT_QUERY="" - CREATE_DB_QUERY="CREATE DATABASE $INFLUXDB_DB" + CREATE_DB_QUERY="CREATE DATABASE \"$INFLUXDB_DB\"" if [ ! -z "$INIT_USERS" ]; then