Commit 3eee644a authored by William Tucker's avatar William Tucker
Browse files

Fixed an issue with the SOLR properties file

parent 70c5196f
Loading
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -10,11 +10,11 @@ ESGF_CORES=( "datasets" "files" "aggregations" )
for corename in "${ESGF_CORES[@]}"; do
    coredir="$SOLR_HOME/$corename"
    # Create the core directory if it doesn't already exist
    if [ ! -f "$coredir/core.properties" ]; then
    if [ ! -d "$coredir" ]; then
        mkdir -p "$coredir"
        touch "$coredir/core.properties"
    fi
    # Replace the core configuration with the most recent version
    cp "/esg/solr-home/$corename/core.properties" "$coredir/core.properties"
    rm -rf "$coredir/conf"
    cp -r /esg/core-template/conf "$coredir/conf"
done