add fulltexrt indexing to RT daily tasks
authorIvan Kohler <ivan@freeside.biz>
Mon, 14 Aug 2017 19:49:47 +0000 (12:49 -0700)
committerIvan Kohler <ivan@freeside.biz>
Mon, 14 Aug 2017 19:49:47 +0000 (12:49 -0700)
FS/FS/Cron/rt_tasks.pm

index 01ea0b5..077f23c 100644 (file)
@@ -31,6 +31,8 @@ sub rt_daily {
   my $system = $FS::TicketSystem::system;
   return if !defined($system) || $system ne 'RT_Internal';
 
   my $system = $FS::TicketSystem::system;
   return if !defined($system) || $system ne 'RT_Internal';
 
+  system('/opt/rt3/sbin/rt-fulltext-indexer --quiet --limit 5400 &');
+
   # if -d or -y is in use, bail out.  There's no reliable way to tell RT 
   # to use an alternate system time.
   if ( $opt{'d'} or $opt{'y'} ) {
   # if -d or -y is in use, bail out.  There's no reliable way to tell RT 
   # to use an alternate system time.
   if ( $opt{'d'} or $opt{'y'} ) {