diff options
| author | Lars Kellogg-Stedman <lars@redhat.com> | 2014-10-10 00:18:12 -0400 |
|---|---|---|
| committer | Lars Kellogg-Stedman <lars@redhat.com> | 2014-10-13 14:41:37 -0400 |
| commit | f2a747b353b01431e12e5b298f0ed0ea48485cba (patch) | |
| tree | b16a16970171ff874a388948e6db954de623100f | |
| parent | 964bfd0311ff13c59e753d9b694af86829168b0f (diff) | |
| download | kolla-f2a747b353b01431e12e5b298f0ed0ea48485cba.tar.gz kolla-f2a747b353b01431e12e5b298f0ed0ea48485cba.zip | |
properly quote password in keystone start script
make sure that DB_ROOT_PASSWORD is in quotes to prevent errors from
shell metacharacters in the password.
Change-Id: I586ba7bb1d518d4ebfef257f92d315684843dd9b
| -rwxr-xr-x | docker/keystone/start.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docker/keystone/start.sh b/docker/keystone/start.sh index 412f1c9ce..7b0897eb0 100755 --- a/docker/keystone/start.sh +++ b/docker/keystone/start.sh @@ -16,7 +16,7 @@ if ! [ "$KEYSTONE_DB_PASSWORD" ]; then KEYSTONE_DB_PASSWORD=$(openssl rand -hex 15) fi -mysql -h ${MARIADB_PORT_3306_TCP_ADDR} -u root -p${DB_ROOT_PASSWORD} mysql <<EOF +mysql -h ${MARIADB_SERVICE_HOST} -u root -p"${DB_ROOT_PASSWORD}" mysql <<EOF CREATE DATABASE IF NOT EXISTS keystone; GRANT ALL PRIVILEGES ON keystone.* TO 'keystone'@'%' IDENTIFIED BY '${KEYSTONE_DB_PASSWORD}' |
