Skip to content

Commit

Permalink
feat: disabling anon access after start
Browse files Browse the repository at this point in the history
  • Loading branch information
garethjevans committed Jan 23, 2019
1 parent 7391104 commit 35f8dea
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions disable-anonymous-access.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"name": "disable-anonymous-access",
"type": "groovy",
"content": "security.setAnonymousAccess(false)"
}
1 change: 1 addition & 0 deletions postStart.sh
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,5 @@ for i in "${REPOS[@]}"; do
done

createOrUpdateAndRun maven-group /opt/sonatype/nexus/maven-group.json
createOrUpdateAndRun disable-anonymous-access /opt/sonatype/nexus/disable-anonymous-access.json

0 comments on commit 35f8dea

Please sign in to comment.