Apache Lucene open-source search software
added default for rsync_port
William Au31c5cc570d69
diff --git a/src/scripts/snappuller b/src/scripts/snappullerindex 822ee00a585..62f938f3bcf 100755--- a/src/scripts/snappuller+++ b/src/scripts/snappuller@@ -93,11 +93,18 @@ thenexit 1fi+# try to determine rsyncd port number from $confFile if not specified on+# command line, default to solr_port+10000if [[ -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+ fifiif [[ -z ${master_data_dir} ]]