diff options
author | Robert Speicher <rspeicher@gmail.com> | 2018-11-19 15:57:27 +0100 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2019-01-08 11:47:31 -0600 |
commit | 25efa371f77bbd7ae458997f93bbdecd20ec81e0 (patch) | |
tree | 1b5f7287e2277fe0c40533d5a3e905ed57643e71 | |
parent | efcffe2d0361fbba002a757ad481d8ce5b58f1db (diff) | |
download | gitlab-ce-25efa371f77bbd7ae458997f93bbdecd20ec81e0.tar.gz |
Call setup_db_user_only more
We can't rely on `getent hosts mysql` on k8s since we don't seem to
define that name. This is a temporary fix, we should really be ensuring
that this host resolves to 127.0.0.1 when building the machine, maybe by
adding it as an alias in the `/etc/hosts` file.
-rw-r--r-- | scripts/utils.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/utils.sh b/scripts/utils.sh index 2d2ba115563..fb886183a63 100644 --- a/scripts/utils.sh +++ b/scripts/utils.sh @@ -16,7 +16,7 @@ retry() { setup_db_user_only() { if [ "$GITLAB_DATABASE" = "postgresql" ]; then . scripts/create_postgres_user.sh - else + elif [ "$GITLAB_DATABASE" = "mysql" ]; then . scripts/create_mysql_user.sh fi } |