Skip to content

Commit

Permalink
remove comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Anemy committed Dec 18, 2023
1 parent d002731 commit af46446
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions docker/oidc/mock-oidc-provider/start-server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,8 @@ python3 /usr/local/bin/docker-entrypoint.py \
--setParameter authenticationMechanisms="MONGODB-OIDC" \
--setParameter enableTestCommands="true" \
--setParameter oidcIdentityProviders="$OIDC_IDENTITY_PROVIDERS" > /dev/null &
MDB_PID="$!"

# Wait for the mongodb server to start.
# sleep 5
until nc -z localhost 27017; do
sleep 1
done
Expand All @@ -28,13 +26,9 @@ done
mongosh "mongodb://localhost:27017/admin" --eval "JSON.stringify(db.createRole({ role: \"dev/groups\", privileges: [ ], roles: [ \"dbOwner\" ] }));"

# Stop the no auth database (we re-start it with auth enabled next).
echo Stopping no-auth server pid $MDB_PID
kill $MDB_PID

pkill mongod

# Wait for the mongodb server to shut down.
# sleep 15
until ! nc -z localhost 27017; do
sleep 1
done
Expand Down

0 comments on commit af46446

Please sign in to comment.