Do not perform reindex on init of Gerrit slave
Do not perform reindex on init of Gerrit slave

When Gerrit was initialized while configured to be a slave, the
initialization printed an error during reindexing:

  fatal: invalid index name(s):
  [projects] available indices are: [groups]

This error was caused, because the 'projects'-index does not exist in
Gerrit slaves.

This change adds a check, when running the initialization, whether
Gerrit is configured as a slave and skips reindexing, if that should be
the case.

Change-Id: Icd8d68bafa7605ed8cd8c87944a5ca4d782bfe79

GerritCodeReview/gerrit,GerritCodeReview/gerrit,qtproject/qtqa-gerrit,qtproject/qtqa-gerrit,qtproject/qtqa-gerrit,GerritCodeReview/gerrit,qtproject/qtqa-gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit,qtproject/qtqa-gerrit,GerritCodeReview/gerrit,qtproject/qtqa-gerrit,GerritCodeReview/gerrit,qtproject/qtqa-gerrit