Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Solr won't start if the log directory is missing.

  • Loading branch information...
commit 77c1dcbbf58caf6e8de197af44d66d53905c527b 1 parent d1c4f45
@rbramley authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 scripts/StartSolr.groovy
View
6 scripts/StartSolr.groovy
@@ -35,6 +35,12 @@ def solrHost = "localhost"
target ( startsolr: "Start Solr Jetty Instance") {
depends("stopsolr")
depends("init")
+
+ // check for log directory existence - create or Solr won't start
+ def solrLogDir = "${solrHome}/logs"
+ if(! new File(solrLogDir)?.exists()) {
+ Ant.mkdir(dir: "${solrLogDir}")
+ }
// overlay the schema.xml config file in the apps grails-app/conf/solr directory (and other conf files)
Ant.copy(todir:"${solrHome}/solr/conf", failonerror: false) {
Please sign in to comment.
Something went wrong with that request. Please try again.