Path shared en tant que variables
This commit is contained in:
parent
cc5023bc74
commit
3fe674505e
@ -1,8 +1,7 @@
|
||||
<?php
|
||||
|
||||
require_once __DIR__ . '/../vendor/autoload.php';
|
||||
|
||||
$jobby = new Jobby\Jobby();
|
||||
$pathShared = realpath(__DIR__ . '/../../shared');
|
||||
|
||||
/**
|
||||
* Télécharge les fichiers OpenData Inpi
|
||||
@ -18,6 +17,7 @@ $jobby = new Jobby\Jobby();
|
||||
* --ftp-password=
|
||||
*/
|
||||
|
||||
$jobby = new Jobby\Jobby();
|
||||
# Example of job definition:
|
||||
# .---------------- minute (0 - 59)
|
||||
# | .------------- hour (0 - 23)
|
||||
@ -30,12 +30,12 @@ $jobby = new Jobby\Jobby();
|
||||
// MARQUE
|
||||
$jobby->add('FRMARQUE', [
|
||||
'command' => 'wget -q -nH -r -c -N -linf'.
|
||||
' -P/home/data/sources/inpi/documents/FRMARQUE'.
|
||||
' -P'.$pathShared.'/sources/inpi/documents/FRMARQUE'.
|
||||
' --ftp-user=Frmarque --ftp-password="F?marQu1" ftp://www.inpi.net',
|
||||
|
||||
'schedule' => '01 19 * * 1-5',
|
||||
|
||||
'output' => '/home/deploy/crony/shared/log/sourceinpi.log',
|
||||
'output' => $pathShared.'/log/sourceinpi.log',
|
||||
|
||||
'enabled' => true,
|
||||
'debug' => true,
|
||||
@ -44,12 +44,12 @@ $jobby->add('FRMARQUE', [
|
||||
// MARQUES - Décisions d'opposition
|
||||
$jobby->add('FRJUROPP', [
|
||||
'command' => 'wget -q -nH -r -c -N -linf'.
|
||||
' -P/home/data/sources/inpi/documents/FRJUROPP'.
|
||||
' -P'.$pathShared.'/sources/inpi/documents/FRJUROPP'.
|
||||
' --ftp-user=Frjuropp --ftp-password="F?jurOp2" ftp://www.inpi.net',
|
||||
|
||||
'schedule' => '01 19 * * 1-5',
|
||||
|
||||
'output' => '/home/deploy/crony/shared/log/sourceinpi.log',
|
||||
'output' => $pathShared.'/log/sourceinpi.log',
|
||||
|
||||
'enabled' => true,
|
||||
'debug' => true,
|
||||
@ -58,12 +58,12 @@ $jobby->add('FRJUROPP', [
|
||||
// DESSINS & MODELES FR
|
||||
$jobby->add('FRDESMOD', [
|
||||
'command' => 'wget -q -nH -r -c -N -linf'.
|
||||
' -P/home/data/sources/inpi/documents/FRDESMOD'.
|
||||
' -P'.$pathShared.'/sources/inpi/documents/FRDESMOD'.
|
||||
' --ftp-user=Frdesmod --ftp-password="F?d&mOd1" ftp://www.inpi.net',
|
||||
|
||||
'schedule' => '01 19 * * 1-5',
|
||||
|
||||
'output' => '/home/deploy/crony/shared/log/sourceinpi.log',
|
||||
'output' => $pathShared.'/log/sourceinpi.log',
|
||||
|
||||
'enabled' => true,
|
||||
'debug' => true,
|
||||
@ -72,12 +72,12 @@ $jobby->add('FRDESMOD', [
|
||||
// DESSINS & MODELES INTERNATIONAL
|
||||
$jobby->add('ITDESMOD', [
|
||||
'command' => 'wget -q -nH -r -c -N -linf'.
|
||||
' -P/home/data/sources/inpi/documents/ITDESMOD'.
|
||||
' -P'.$pathShared.'/sources/inpi/documents/ITDESMOD'.
|
||||
' --ftp-user=Itdesmod --ftp-password="I?td&Mo2" ftp://www.inpi.net',
|
||||
|
||||
'schedule' => '01 19 * * 1-5',
|
||||
|
||||
'output' => '/home/deploy/crony/shared/log/sourceinpi.log',
|
||||
'output' => $pathShared.'/log/sourceinpi.log',
|
||||
|
||||
'enabled' => false,
|
||||
'debug' => true,
|
||||
@ -86,12 +86,12 @@ $jobby->add('ITDESMOD', [
|
||||
// BREVETS Notices FR
|
||||
$jobby->add('BFRBIBLI', [
|
||||
'command' => 'wget -q -nH -r -c -N -linf'.
|
||||
' -P/home/data/sources/inpi/documents/BFRBIBLI'.
|
||||
' -P'.$pathShared.'/sources/inpi/documents/BFRBIBLI'.
|
||||
' --ftp-user=Bfrbibli --ftp-password="B?rbiBl1" ftp://www.inpi.net',
|
||||
|
||||
'schedule' => '01 19 * * 1-5',
|
||||
|
||||
'output' => '/home/deploy/crony/shared/log/sourceinpi.log',
|
||||
'output' => $pathShared.'/log/sourceinpi.log',
|
||||
|
||||
'enabled' => true,
|
||||
'debug' => true,
|
||||
@ -100,12 +100,12 @@ $jobby->add('BFRBIBLI', [
|
||||
// BREVETS Fasicules PDF
|
||||
$jobby->add('BFRFAPDF', [
|
||||
'command' => 'wget -q -nH -r -c -N -linf'.
|
||||
' -P/home/data/sources/inpi/documents/BFRFAPDF'.
|
||||
' -P'.$pathShared.'/sources/inpi/documents/BFRFAPDF'.
|
||||
' --ftp-user=Bfrfapdf --ftp-password="B?rfaPd2" ftp://www.inpi.net',
|
||||
|
||||
'schedule' => '01 19 * * 1-5',
|
||||
|
||||
'output' => '/home/deploy/crony/shared/log/sourceinpi.log',
|
||||
'output' => $pathShared.'/log/sourceinpi.log',
|
||||
|
||||
'enabled' => true,
|
||||
'debug' => true,
|
||||
@ -114,12 +114,12 @@ $jobby->add('BFRFAPDF', [
|
||||
// BREVETS Fasicules TIFF - Impossible à récup en auto
|
||||
$jobby->add('BFRFASCI', [
|
||||
'command' => 'wget -q -nH -r -c -N -linf'.
|
||||
' -P/home/data/sources/inpi/documents/BFRFASCI'.
|
||||
' -P'.$pathShared.'/sources/inpi/documents/BFRFASCI'.
|
||||
' --ftp-user=Bfrfasci --ftp-password="B?rfaSc1" ftp://www.inpi.net',
|
||||
|
||||
'schedule' => '01 19 * * 1-5',
|
||||
|
||||
'output' => '/home/deploy/crony/shared/log/sourceinpi.log',
|
||||
'output' => $pathShared.'/log/sourceinpi.log',
|
||||
|
||||
'enabled' => true,
|
||||
'debug' => true,
|
||||
@ -128,12 +128,12 @@ $jobby->add('BFRFASCI', [
|
||||
// BREVETS Texte Intégrale OCRisés
|
||||
$jobby->add('BFRTEXTE', [
|
||||
'command' => 'wget -q -nH -r -c -N -linf'.
|
||||
' -P/home/data/sources/inpi/documents/BFRTEXTE'.
|
||||
' -P'.$pathShared.'/sources/inpi/documents/BFRTEXTE'.
|
||||
' --ftp-user=BfrTexte --ftp-password="B?rteXt1" ftp://www.inpi.net',
|
||||
|
||||
'schedule' => '01 19 * * 1-5',
|
||||
|
||||
'output' => '/home/deploy/crony/shared/log/sourceinpi.log',
|
||||
'output' => $pathShared.'/log/sourceinpi.log',
|
||||
|
||||
'enabled' => true,
|
||||
'debug' => true,
|
||||
@ -142,12 +142,12 @@ $jobby->add('BFRTEXTE', [
|
||||
// BREVETS européens Na
|
||||
$jobby->add('BEPPHNAT', [
|
||||
'command' => 'wget -q -nH -r -c -N -linf'.
|
||||
' -P/home/data/sources/inpi/documents/BEPPHNAT'.
|
||||
' -P'.$pathShared.'/sources/inpi/documents/BEPPHNAT'.
|
||||
' --ftp-user=Bepphnat --ftp-password="B?pphNa2" ftp://www.inpi.net',
|
||||
|
||||
'schedule' => '01 19 * * 1-5',
|
||||
|
||||
'output' => '/home/deploy/crony/shared/log/sourceinpi.log',
|
||||
'output' => $pathShared.'/log/sourceinpi.log',
|
||||
|
||||
'enabled' => true,
|
||||
'debug' => true,
|
||||
@ -156,12 +156,12 @@ $jobby->add('BEPPHNAT', [
|
||||
// BREVETS européens Fascicules traduits
|
||||
$jobby->add('BEPFASCI', [
|
||||
'command' => 'wget -q -nH -r -c -N -linf'.
|
||||
' -P/home/data/sources/inpi/documents/BEPFASCI'.
|
||||
' -P'.$pathShared.'/sources/inpi/documents/BEPFASCI'.
|
||||
' --ftp-user=Bepfasci --ftp-password="B?pfaSc1" ftp://www.inpi.net',
|
||||
|
||||
'schedule' => '01 19 * * 1-5',
|
||||
|
||||
'output' => '/home/deploy/crony/shared/log/sourceinpi.log',
|
||||
'output' => $pathShared.'/log/sourceinpi.log',
|
||||
|
||||
'enabled' => true,
|
||||
'debug' => true,
|
||||
|
@ -1,8 +1,9 @@
|
||||
<?php
|
||||
require_once __DIR__ . '/../vendor/autoload.php';
|
||||
|
||||
$jobby = new Jobby\Jobby();
|
||||
$pathShared = realpath(__DIR__ . '/../../shared');
|
||||
|
||||
$jobby = new Jobby\Jobby();
|
||||
# Example of job definition:
|
||||
# .---------------- minute (0 - 59)
|
||||
# | .------------- hour (0 - 23)
|
||||
@ -14,12 +15,12 @@ $jobby = new Jobby\Jobby();
|
||||
|
||||
// MARQUE
|
||||
$jobby->add('INSEE', [
|
||||
'command' => 'cd /home/data/sources/opendata/insee && curl -s https://www.data.gouv.fr/fr/datasets/base-sirene-des-entreprises-et-de-leurs-etablissements-siren-siret/'.
|
||||
'command' => 'cd '.$pathShared.'/sources/opendata/insee && curl -s https://www.data.gouv.fr/fr/datasets/base-sirene-des-entreprises-et-de-leurs-etablissements-siren-siret/'.
|
||||
' | grep http.*zip -o | sort | uniq | wget -c -N -i -',
|
||||
|
||||
'schedule' => '01 13,18 * * 1-5',
|
||||
|
||||
'output' => '/home/deploy/crony/shared/log/sourceinsee.log',
|
||||
'output' => $pathShared.'/log/sourceinsee.log',
|
||||
|
||||
'enabled' => true,
|
||||
'debug' => true,
|
||||
|
Loading…
Reference in New Issue
Block a user