Change incron.d with automatic configuration
This commit is contained in:
parent
86cf862fc2
commit
b525a49f5b
@ -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";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user