Skip to content

Commit

Permalink
quote database name in init script when creating database
Browse files Browse the repository at this point in the history
  • Loading branch information
repomaa committed Aug 10, 2020
1 parent 65dd4e6 commit db67b02
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion influxdb/1.7/init-influxdb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ fi
if ( [ ! -z "$INIT_USERS" ] || [ ! -z "$INFLUXDB_DB" ] || [ "$(ls -A /docker-entrypoint-initdb.d 2> /dev/null)" ] ) && [ ! "$(ls -d "$META_DIR" 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

Expand Down
2 changes: 1 addition & 1 deletion influxdb/1.8/init-influxdb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ fi
if ( [ ! -z "$INIT_USERS" ] || [ ! -z "$INFLUXDB_DB" ] || [ "$(ls -A /docker-entrypoint-initdb.d 2> /dev/null)" ] ) && [ ! "$(ls -d "$META_DIR" 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

Expand Down

0 comments on commit db67b02

Please sign in to comment.