blob: 86574b1d431cc5bca969c7e5ec54c6ee591eb3cb [file] [log] [blame]
#!/bin/sh
set -e
if [ "${GITHUB_OAUTH_CLIENT_ID}" -a "${GITHUB_OAUTH_CLIENT_SECRET}" ]; then
git config -f /var/gerrit/etc/gerrit.config \
plugin.gerrit-oauth-provider-github-oauth.root-url "https://github.com/"
git config -f /var/gerrit/etc/gerrit.config \
plugin.gerrit-oauth-provider-github-oauth.client-id "${GITHUB_OAUTH_CLIENT_ID}"
git config -f /var/gerrit/etc/gerrit.config \
plugin.gerrit-oauth-provider-github-oauth.client-secret "${GITHUB_OAUTH_CLIENT_SECRET}"
fi
exec /entrypoint.sh "$@"