Change incron.d with automatic configuration

This commit is contained in:
Michael RICOIS 2014-11-06 19:23:41 +00:00
parent 86cf862fc2
commit b525a49f5b

View File

@ -86,7 +86,7 @@ if ($opts->generate)
$directory = $item['directory'];
}
$fluxBasePath = '/home/data/' . strtolower($item['type']) . '/' . $client . '/' . $directory;
$file = __DIR__ . '/incron/' . strtolower($item['type']) . '_' . $client;
$file = __DIR__ . '/incron.d/' . strtolower($item['type']) . '_' . $client;
file_put_contents($file, "$fluxBasePath IN_CLOSE_WRITE php /home/batchFlux/fileSend.php --file $@/$#");
echo "File created $file\n";
}