Better fix for portal installation (#1333)

3 jobs for master in 4 minutes and 58 seconds
Status Job ID Name Coverage
  Build
failed #1005
build

00:04:58

 
  Test
skipped #1007
allowed to fail
codequality
skipped #1006
test
 
Name Stage Failure
failed
build Build There is an unknown failure, please try again
$ export DATABASE_URL=${DATABASE_URL-$auto_database_url}
$ export CI_APPLICATION_REPOSITORY=$CI_REGISTRY_IMAGE/$CI_COMMIT_REF_SLUG
$ export CI_APPLICATION_TAG=$CI_COMMIT_SHA
$ export CI_CONTAINER_NAME=ci_job_build_${CI_JOB_ID}
$ export TILLER_NAMESPACE=$KUBE_NAMESPACE

$ function codeclimate() {
/bin/sh: eval: line 92: syntax error: unexpected "(" (expecting "}")
ERROR: Job failed: exit code 2