Skip to content

Commit

Permalink
Update comment for updating docker-compose config file with actual ST…
Browse files Browse the repository at this point in the history
…UDY_CONFIG
  • Loading branch information
iantei committed Oct 2, 2024
1 parent 2d81075 commit 242a7ea
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions viz_scripts/docker/load_mongodump.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ echo "Database Name: $DB_NAME"
DB_HOST="mongodb://db/$DB_NAME"
sed -i.bak "s|DB_HOST=.*|DB_HOST=$DB_HOST|" "$CONFIG_FILE"

# Update the docker-compose configuration file with the actual STUDY_CONFIG
STUDY_CONFIG=$(echo "$DB_NAME" | sed -E 's/openpath_prod_(.*)$/\1/' | tr '_' '-')
sed -i.bak "s|STUDY_CONFIG=.*|STUDY_CONFIG=$STUDY_CONFIG|" "$CONFIG_FILE"

Expand Down

0 comments on commit 242a7ea

Please sign in to comment.