You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-commits@lucene.apache.org by bi...@apache.org on 2006/03/24 20:56:19 UTC
svn commit: r388620 - /incubator/solr/trunk/src/scripts/snappuller
Author: billa
Date: Fri Mar 24 11:56:18 2006
New Revision: 388620
URL: http://svn.apache.org/viewcvs?rev=388620&view=rev
Log:
added default for rsync_port
Modified:
incubator/solr/trunk/src/scripts/snappuller
Modified: incubator/solr/trunk/src/scripts/snappuller
URL: http://svn.apache.org/viewcvs/incubator/solr/trunk/src/scripts/snappuller?rev=388620&r1=388619&r2=388620&view=diff
==============================================================================
--- incubator/solr/trunk/src/scripts/snappuller (original)
+++ incubator/solr/trunk/src/scripts/snappuller Fri Mar 24 11:56:18 2006
@@ -93,11 +93,18 @@
exit 1
fi
+# try to determine rsyncd port number from $confFile if not specified on
+# command line, default to solr_port+10000
if [[ -z ${rsyncd_port} ]]
then
- echo "rsyncd port number of master server missing in $confFile or command line."
- echo "$USAGE"
- exit 1
+ if [[ "${solr_port}" ]]
+ then
+ rsyncd_port=`expr 10000 + ${solr_port}`
+ else
+ echo "rsyncd port number of master server missing in $confFile or command line."
+ echo "$USAGE"
+ exit 1
+ fi
fi
if [[ -z ${master_data_dir} ]]