Skip to content
This repository has been archived by the owner on Nov 29, 2020. It is now read-only.

if $AUTH=no no password is set for admin user #32

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions 2.6/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,18 @@ if [ "$AUTH" == "yes" ]; then
cmd="$cmd --auth"
fi

if [ "$AUTH" == "no" ]; then
touch /data/db/.mongodb_password_set
echo "========================================================================"
echo "You can now connect to this MongoDB server using:"
echo ""
echo " mongo --host <host> --port <port>"
echo ""
echo "Please remember: Having no password is a security risk and should"
echo "only be used during development."
echo "========================================================================"
fi

if [ "$JOURNALING" == "no" ]; then
cmd="$cmd --nojournal"
fi
Expand Down
12 changes: 12 additions & 0 deletions 3.0/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,18 @@ if [ "$AUTH" == "yes" ]; then
cmd="$cmd --auth"
fi

if [ "$AUTH" == "no" ]; then
touch /data/db/.mongodb_password_set
echo "========================================================================"
echo "You can now connect to this MongoDB server using:"
echo ""
echo " mongo --host <host> --port <port>"
echo ""
echo "Please remember: Having no password is a security risk and should"
echo "only be used during development."
echo "========================================================================"
fi

if [ "$JOURNALING" == "no" ]; then
cmd="$cmd --nojournal"
fi
Expand Down