Test if direcory exist

This commit is contained in:
Michael RICOIS 2013-05-14 09:49:05 +00:00
parent 389eddd467
commit dcc8225295

View File

@ -78,4 +78,10 @@ elseif(isset($opts->install))
//Set scripts executable //Set scripts executable
passthru('chmod -v +x '.APPLICATION_PATH.'/../scripts/jobs/*.php'); passthru('chmod -v +x '.APPLICATION_PATH.'/../scripts/jobs/*.php');
//Check persistent data directories
if ( !file_exists($c->profil->path->data.DIRECTORY_SEPARATOR.'log') ) {
echo "Erreur ".$c->profil->path->data.DIRECTORY_SEPARATOR.'log'. " non présent";
echo "\n";
}
} }