| #!/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 "$@" |