Ignore:
Timestamp:
Sep 12, 2010, 3:40:20 PM (11 years ago)
Author:
teymour
Message:

Correction bug index_if
+ clarification des droits sur le log solr

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpc/trunk/project/lib/model/solr/SolrCommands.class.php

    r1366 r1369  
    44{
    55  public static function getFileCommands() {
     6    umask(0002);
     7    if (!file_exists(sfConfig::get('sf_log_dir').'/solr/')) {
     8      mkdir (sfConfig::get('sf_log_dir').'/solr/');
     9    }
    610    return sfConfig::get('sf_log_dir').'/solr/commands.log';
    711  }
     
    4852      $this->file = null;
    4953    }
     54    if (!file_exists($this->getFileCommands()))
     55      touch($this->getFileCommands());
    5056    rename($this->getFileCommands(), $lockfile);
    5157    sem_release($this->semaphore);
Note: See TracChangeset for help on using the changeset viewer.