Skip to content

Commit

Permalink
Fix stop-orchestration (#481)
Browse files Browse the repository at this point in the history
  • Loading branch information
blink1073 authored Aug 30, 2024
1 parent 50ed413 commit 6b1e892
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .evergreen/stop-orchestration.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@ SCRIPT_DIR=$(dirname "${BASH_SOURCE:-"$0"}")
cd ${DRIVERS_TOOLS}

# source the mongo-orchestration virtualenv if it exists
if [ -f venv/bin/activate ]; then
. "$MONGO_ORCHESTRATION_HOME/venv/bin/activate"
VENV="$MONGO_ORCHESTRATION_HOME/venv"
if [ -f "$VENV/bin/activate" ]; then
. "$VENV/bin/activate"
mongo-orchestration stop
elif [ -f venv/Scripts/activate ]; then
. "$MONGO_ORCHESTRATION_HOME/venv/Scripts/activate"
elif [ -f "$VENV/Scripts/activate" ]; then
. "$VENV/Scripts/activate"
mongo-orchestration stop
else
echo "No virtualenv found!"
Expand Down

0 comments on commit 6b1e892

Please sign in to comment.