diff options
author | Krzysztof Opasiak <k.opasiak@samsung.com> | 2020-01-22 16:22:18 +0100 |
---|---|---|
committer | Krzysztof Opasiak <k.opasiak@samsung.com> | 2020-01-22 20:05:20 +0100 |
commit | da1b8e6ca12be16f0d091ff73ac34943bd9dfbe3 (patch) | |
tree | 7f993af36e1539b4c2d6c26296a9eff3f3404b97 /kubernetes/common/mariadb-init | |
parent | c9126b7496f720d8295190983551cd5944e88025 (diff) |
[COMMON] Add missing ! in db_init.sh script
For some reason unknown to me I was stupid enough to forget to
put ! in a front of variable name in the final vesion of script.
Let's just quickly fix that so that not too many people notice;)
Issue-ID: OOM-2248
Change-Id: I0b8891b94856b21f4b1fad1d6731c461bae2c1aa
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
Diffstat (limited to 'kubernetes/common/mariadb-init')
-rwxr-xr-x | kubernetes/common/mariadb-init/resources/config/db_init.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kubernetes/common/mariadb-init/resources/config/db_init.sh b/kubernetes/common/mariadb-init/resources/config/db_init.sh index 8caa697e79..b2fdb14b12 100755 --- a/kubernetes/common/mariadb-init/resources/config/db_init.sh +++ b/kubernetes/common/mariadb-init/resources/config/db_init.sh @@ -17,8 +17,8 @@ while read DB ; do USER_VAR="MYSQL_USER_${DB^^}" PASS_VAR="MYSQL_PASSWORD_${DB^^}" - USER=${USER_VAR} - PASS=${PASS_VAR} + USER=${!USER_VAR} + PASS=${!PASS_VAR} MYSQL_OPTS=( -h ${DB_HOST} -P ${DB_PORT} -uroot -p${MYSQL_ROOT_PASSWORD} ) echo "Creating database ${DB} and user ${USER}..." |