[COMMON] Fix ${!name} bashisms 81/119081/14
authorGuillaume Lambert <guillaume.lambert@orange.com>
Wed, 10 Mar 2021 15:09:31 +0000 (16:09 +0100)
committerKrzysztof Opasiak <k.opasiak@samsung.com>
Wed, 26 May 2021 06:55:45 +0000 (06:55 +0000)
commitf3454863133c2979f5091e6881cde3a496b2e12d
tree65b5d180b3947f9e9b2d0dbae3e683f16939c790
parent9970854c6fec9e99bf8c5fd88d2183041a8c9fb7
[COMMON] Fix ${!name} bashisms

pointed out by checkbashisms.

Note this kind of indirections can only be replaced directly in POSIX
by commands using eval.
Security risks must be evaluated for each context where eval is called.
For a safe use, the context must ensure that only a limited number of
possible constrainted values are passed to eval.

https://mywiki.wooledge.org/Bashism#Parameter_Expansions
https://mywiki.wooledge.org/BashFAQ/006#Indirection

Issue-ID: OOM-264
Signed-off-by: Guillaume Lambert <guillaume.lambert@orange.com>
Change-Id: Id27f3ffd1ddb092a9c038d3a45d9e3278720eb62
kubernetes/common/cassandra/resources/config/docker-entrypoint.sh
kubernetes/common/mariadb-init/resources/config/db_init.sh
kubernetes/portal/components/portal-mariadb/resources/config/mariadb/docker-entrypoint.sh