Skip to content

Commit

Permalink
ZENKO-4730: updating symlinks and sh
Browse files Browse the repository at this point in the history
  • Loading branch information
benzekrimaha committed Mar 6, 2024
1 parent 8a31e29 commit 3d46e79
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 3 additions & 5 deletions solution-base/mongodb/scripts/create-app-user.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
#!/bin/bash
filename=$(basename -- "$0")

# Checking if filename contains "-sharded"
if [[ "$filename" == *"-sharded"* ]]; then
mongoCmd="mongosh"
else
if command -v mongo &> /dev/null; then
mongoCmd="mongo"
else
mongoCmd="mongosh"
fi

create_user() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
// I want to check if mongo exec is available

if command -v mongo &> /dev/null; then
mongoCmd="mongo"
else
Expand Down

0 comments on commit 3d46e79

Please sign in to comment.