summaryrefslogtreecommitdiff
path: root/plugins/SphinxSearch/scripts/index_update.php
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/SphinxSearch/scripts/index_update.php')
-rwxr-xr-xplugins/SphinxSearch/scripts/index_update.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/SphinxSearch/scripts/index_update.php b/plugins/SphinxSearch/scripts/index_update.php
index 23c60ced7..abac5434f 100755
--- a/plugins/SphinxSearch/scripts/index_update.php
+++ b/plugins/SphinxSearch/scripts/index_update.php
@@ -42,20 +42,20 @@ sphinx_iterate_sites('sphinx_index_update');
function sphinx_index_update($sn)
{
$base = sphinx_base();
-
+
$baseIndexes = array('notice', 'profile');
$params = array();
-
+
if (have_option('rotate')) {
$params[] = '--rotate';
}
foreach ($baseIndexes as $index) {
$params[] = "{$sn->dbname}_{$index}";
}
-
+
$params = implode(' ', $params);
$cmd = "$base/bin/indexer --config $base/etc/sphinx.conf $params";
-
+
print "$cmd\n";
system($cmd);
}