Skip to content

Commit

Permalink
functions: properly delete the bitbucket auth config when not in use
Browse files Browse the repository at this point in the history
  • Loading branch information
sameersbn committed Mar 10, 2021
1 parent ebcd5ba commit adf79a6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion assets/runtime/config/gitlabhq/gitlab.yml
Original file line number Diff line number Diff line change
Expand Up @@ -929,7 +929,7 @@ production: &base
- { name: 'bitbucket',
app_id: '{{OAUTH_BITBUCKET_API_KEY}}',
app_secret: '{{OAUTH_BITBUCKET_APP_SECRET}}',
url: '{{OAUTH_BITBUCKET_URL}}'}
url: '{{OAUTH_BITBUCKET_URL}}' }
- { name: 'gitlab',
label: 'GitLab.com',
app_id: '{{OAUTH_GITLAB_API_KEY}}',
Expand Down
2 changes: 1 addition & 1 deletion assets/runtime/functions
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ gitlab_configure_oauth_bitbucket() {
OAUTH_BITBUCKET_APP_SECRET \
OAUTH_BITBUCKET_URL
else
exec_as_git sed -i "/name: 'bitbucket'/,/{{OAUTH_BITBUCKET_APP_SECRET}}/d" ${GITLAB_CONFIG}
exec_as_git sed -i "/name: 'bitbucket'/,/{{OAUTH_BITBUCKET_URL}}/d" ${GITLAB_CONFIG}
fi
}

Expand Down

0 comments on commit adf79a6

Please sign in to comment.