diff options
author | Guillaume Lambert <guillaume.lambert@orange.com> | 2021-03-12 10:59:34 +0100 |
---|---|---|
committer | Guillaume Lambert <guillaume.lambert@orange.com> | 2021-08-28 13:35:00 +0000 |
commit | 05c791d5db91bef0cc62ec4393e3ceca5bff4755 (patch) | |
tree | 8fcf29217aa686e357379cf81febb7e111438579 /kubernetes/common/mariadb-init/resources/config | |
parent | bd1b9ab1891c275cb3b499956ceb0b498a634475 (diff) |
[COMMON] Fix ${p^^} bashisms
pointed out by checkbashisms
Issue-ID: OOM-2643
Signed-off-by: Guillaume Lambert <guillaume.lambert@orange.com>
Change-Id: I34d828ac4ab27b5ce6547a20aecc610cdcecf00e
Diffstat (limited to 'kubernetes/common/mariadb-init/resources/config')
-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 f130bb5118..df7c336405 100755 --- a/kubernetes/common/mariadb-init/resources/config/db_init.sh +++ b/kubernetes/common/mariadb-init/resources/config/db_init.sh @@ -21,8 +21,8 @@ set -e while read DB ; do - USER_VAR="MYSQL_USER_${DB^^}" - PASS_VAR="MYSQL_PASSWORD_${DB^^}" + USER_VAR="MYSQL_USER_$(echo $DB | tr '[:lower:]' '[:upper:]')" + PASS_VAR="MYSQL_PASSWORD_$(echo $DB | tr '[:lower:]' '[:upper:]')" {{/* # USER=${!USER_VAR} # PASS=`echo -n ${!PASS_VAR} | sed -e "s/'/''/g"` |