diff options
author | Guillaume Lambert <guillaume.lambert@orange.com> | 2021-03-11 13:42:23 +0100 |
---|---|---|
committer | Guillaume Lambert <guillaume.lambert@orange.com> | 2021-06-16 17:31:03 +0000 |
commit | 134188daef48f9c1fadad5b26b4fb1e6417e4304 (patch) | |
tree | 05c74c5b3dee688de0d52e616a5f286a27955081 /kubernetes/portal/components/portal-mariadb | |
parent | f11d35a6320c98785c6c2ec2a84c8a2988a4b732 (diff) |
[COMMON] Fix $BASH_SOURCE and pushd/popd bashisms
pointed out by checkbashisms.
Issue-ID: OOM-2643
Signed-off-by: Guillaume Lambert <guillaume.lambert@orange.com>
Change-Id: Ic9c4edc0fc6bd94a95bcb85d84379e868fb09930
Diffstat (limited to 'kubernetes/portal/components/portal-mariadb')
-rw-r--r-- | kubernetes/portal/components/portal-mariadb/resources/config/mariadb/docker-entrypoint.sh | 2 |
1 files changed, 1 insertions, 1 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 c4a21b927f..ebc8ca0f40 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 @@ -323,7 +323,7 @@ _main() { # If container is started as root user, restart as dedicated mysql user if [ "$(id -u)" = "0" ]; then mysql_note "Switching to dedicated user 'mysql'" - exec gosu mysql "$BASH_SOURCE" "$@" + exec gosu mysql "$0" "$@" fi # there's no database, so it needs to be initialized |