#!/bin/bash

error_echo()
{
  echo "$1" 2>& 1
}

gitlab_healthcheck_rc='/opt/gitlab/etc/gitlab-healthcheck-rc'


if ! [ -f ${gitlab_healthcheck_rc} ] ; then
  exit 1
fi

. ${gitlab_healthcheck_rc}

exec /opt/gitlab/embedded/bin/curl "$@" "${flags[@]}" "${url}"
