mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-27 16:06:39 +00:00
14 lines
533 B
Bash
Executable File
14 lines
533 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# Executes the following script on the DB server:
|
|
##!/bin/sh
|
|
#useremail=$1
|
|
#for i in `echo "show dbs" | /opt/mongodb-linux-x86_64-2.6.7/bin/mongo --port 10202 | grep -v "^bye$" | awk '{print $1;'}`; do
|
|
# match=`echo "db.USERS.find({EMAIL: '$useremail'}); db.COMPETITORS.find({email: '$useremail'})" | /opt/mongodb-linux-x86_64-2.6.7/bin/mongo --quiet --port 10202 $i`
|
|
# if [ "$match" != "" ]; then
|
|
# echo ${i}: $match
|
|
# fi
|
|
#done
|
|
|
|
ssh -A root@sapsailing.com ssh -A dbserver.internal.sapsailing.com finduserbyemail $1
|