Commit d1d42102 authored by ACCE Deploy's avatar ACCE Deploy
Browse files

Temporrarily commenting out functionality

parent 983b8faf
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -67,7 +67,8 @@ fi
if ! [[ $shard_name == 'master' || $shard_name == 'slave' ]]; then
  shards_file="/esg/config/esgf_shards_static.xml"
  if ! grep -q ${shard_port} ${shards_file} ; then
    #echo "Adding shard to ${shards_file}"
    echo "Adding shard to ${shards_file}"
    # following not currently working on distributed nodes
    #sed -i 's/<\/shards>/    <value>localhost:'${shard_port}'\/solr<\/value>\n<\/shards>/g' ${shards_file}
  fi
fi
+1 −1
Original line number Diff line number Diff line
@@ -43,7 +43,7 @@ if ! [[ $shard_name == 'master' || $shard_name == 'slave' ]]; then
  shards_file="/esg/config/esgf_shards_static.xml"
  if grep -q ${shard_port} ${shards_file} ; then
    echo "Removing shard from ${shards_file}"
    sed -i '/localhost:'${shard_port}'/d' ${shards_file}
    #sed -i '/localhost:'${shard_port}'/d' ${shards_file}
  fi

fi