Merge branch 'master' of /home/trac/git

This commit is contained in:
Generic Wiki User
2018-04-13 10:20:02 +00:00
+13
View File
@@ -0,0 +1,13 @@
#!/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