diff options
author | Sylvain Desbureaux <sylvain.desbureaux@orange.com> | 2021-09-07 07:06:11 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2021-09-07 07:06:11 +0000 |
commit | 0b7eb9ac71bf40746566b0dd48ddfca56b3dc2aa (patch) | |
tree | 8f1d36e2e6b68e62edf44e35e3eb5c3b2352d87a /kubernetes/portal/components/portal-mariadb/resources | |
parent | 970e502e6e61c9bdc9c4bae9ef4e7e1aaf821360 (diff) | |
parent | 42f91fc8f9467f9f7fb9ac7e6349b33964b63127 (diff) |
Merge "[COMMON] Fix ${foo:3[:1]} bashisms"
Diffstat (limited to 'kubernetes/portal/components/portal-mariadb/resources')
-rw-r--r-- | kubernetes/portal/components/portal-mariadb/resources/config/mariadb/docker-entrypoint.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kubernetes/portal/components/portal-mariadb/resources/config/mariadb/docker-entrypoint.sh b/kubernetes/portal/components/portal-mariadb/resources/config/mariadb/docker-entrypoint.sh index 3d5e13ff5a..b416fdd5d8 100644 --- a/kubernetes/portal/components/portal-mariadb/resources/config/mariadb/docker-entrypoint.sh +++ b/kubernetes/portal/components/portal-mariadb/resources/config/mariadb/docker-entrypoint.sh @@ -164,7 +164,7 @@ docker_init_database_dir() { installArgs=${installArgs}" --auth-root-authentication-method=normal" fi # "Other options are passed to mysqld." (so we pass all "mysqld" arguments directly here) - mysql_install_db ${installArgs} "${@:2}" + mysql_install_db ${installArgs} "$(echo ${@} | sed 's/^ *[^ ]* *//')" mysql_note "Database files initialized" } @@ -313,7 +313,7 @@ _mysql_want_help() { _main() { # if command starts with an option, prepend mysqld - if [ "${1:0:1}" = '-' ]; then + if echo "$1" | grep '^-' >/dev/null; then set -- mysqld "$@" fi |