diff --git a/bin/sourceInpi.php b/bin/sourceInpi.php index 15e45fc..85a778b 100755 --- a/bin/sourceInpi.php +++ b/bin/sourceInpi.php @@ -1,8 +1,7 @@ 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, diff --git a/bin/sourceInsee.php b/bin/sourceInsee.php index 629f1b3..3e69d74 100644 --- a/bin/sourceInsee.php +++ b/bin/sourceInsee.php @@ -1,8 +1,9 @@ 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,