Mise en conformité des chemins
This commit is contained in:
parent
821de72623
commit
8b219814e6
2
insee.sh
2
insee.sh
@ -2,7 +2,7 @@
|
||||
|
||||
# --- Configuration
|
||||
BASEPATH="/home/scores/batch"
|
||||
STORAGE="/home/batch/shared/sources/insee/send"
|
||||
STORAGE="/home/scores/batch/shared/sources/insee/send"
|
||||
#URL="ftp://192.168.3.202/"
|
||||
#OPTION="--user mpc2500:passmpc78"
|
||||
URL="ftp://81.255.68.110:21/download/"
|
||||
|
@ -23,7 +23,7 @@ profil.mail.email.support = supportdev@scores-decisions.com
|
||||
profil.mail.email.supportdev = supportdev@scores-decisions.com
|
||||
profil.mail.email.contact = supportdev@scores-decisions.com
|
||||
profil.mail.email.production = supportdev@scores-decisions.com
|
||||
profil.path.shared = "/home/vhosts/batch/shared"
|
||||
profil.path.shared = "/home/scores/batch/shared"
|
||||
|
||||
; Metier - Infogreffe
|
||||
profil.infogreffe.wsdl = "infogreffe.wsdl"
|
||||
|
@ -8,36 +8,36 @@ define('LONGUEUR_LIGNE_SORTIE', 2000);
|
||||
define('BODACC_FTP_URL', 'ftp.journal-officiel.gouv.fr');
|
||||
define('BODACC_FTP_USER', 'SCORE');
|
||||
define('BODACC_FTP_PASS', 'SD075');
|
||||
define('BODACC_LOCAL_DIR', '/home/batch/shared/sources/bodacc/');
|
||||
define('JAL_LOCAL_DIR', '/home/batch/shared/sources/jal/');
|
||||
define('BODACC_LOCAL_DIR', '/home/scores/batch/shared/sources/bodacc/');
|
||||
define('JAL_LOCAL_DIR', '/home/scores/batch/shared/sources/jal/');
|
||||
|
||||
/** Paramétres du FTP de Hugin : Communiqués de presse **/
|
||||
define('HUGIN_FTP_URL', 'ftp.companynews.fr');
|
||||
define('HUGIN_FTP_USER', 'scores');
|
||||
define('HUGIN_FTP_PASS', 'scores_632');
|
||||
define('HUGIN_LOCAL_DIR', '/home/batch/shared/sources/infosreg/hugin/');
|
||||
define('HUGIN_LOCAL_DIR', '/home/scores/batch/shared/sources/infosreg/hugin/');
|
||||
|
||||
/** Paramétres du FTP de ActusNews : Communiqués de presse **/
|
||||
define('ACTUSNEWS_FTP_URL', 'ftp.actusnews.com');
|
||||
define('ACTUSNEWS_FTP_USER', 'scores_act');
|
||||
define('ACTUSNEWS_FTP_PASS', '6_etIwL');
|
||||
define('ACTUSNEWS_LOCAL_DIR', '/home/batch/shared/sources/infosreg/actusnews/');
|
||||
define('ACTUSNEWS_LOCAL_DIR', '/home/scores/batch/shared/sources/infosreg/actusnews/');
|
||||
|
||||
/** Paramétres du FTP de Di Release : Communiqués de presse **/
|
||||
define('DIRELEASE_FTP_URL', 'ftp.actusnews.com');
|
||||
define('DIRELEASE_FTP_USER', 'scores_dir');
|
||||
define('DIRELEASE_FTP_PASS', '-gT52sQ');
|
||||
define('DIRELEASE_LOCAL_DIR', '/home/batch/shared/sources/infosreg/direlease/');
|
||||
define('DIRELEASE_LOCAL_DIR', '/home/scores/batch/shared/sources/infosreg/direlease/');
|
||||
|
||||
/** Paramétres du FTP des Echos: Communiqués de presse **/
|
||||
define('LESECHOS_FTP_URL', 'ftp.webdisclosure.com');
|
||||
define('LESECHOS_FTP_USER', 'Scores');
|
||||
define('LESECHOS_FTP_PASS', 'scores2001');
|
||||
define('LESECHOS_LOCAL_DIR', '/home/batch/shared/sources/infosreg/lesechos/');
|
||||
define('LESECHOS_LOCAL_DIR', '/home/scores/batch/shared/sources/infosreg/lesechos/');
|
||||
|
||||
/** Paramétres du FTP de BusinessWire : Communiqués de presse **/
|
||||
define('BUSINESSWIRE_LOCAL_DIR_INCOMING', '/home/batch/shared/ftp/businesswire/');
|
||||
define('BUSINESSWIRE_LOCAL_DIR', '/home/batch/shared/infosreg/businesswire/');
|
||||
define('BUSINESSWIRE_LOCAL_DIR_INCOMING', '/home/scores/batch/shared/ftp/businesswire/');
|
||||
define('BUSINESSWIRE_LOCAL_DIR', '/home/scores/batch/shared/infosreg/businesswire/');
|
||||
|
||||
/** Base de données de S&D **/
|
||||
define ('MYSQL_HOST', '192.168.3.30');
|
||||
@ -82,11 +82,11 @@ define('AMABIS_WS_URL', 'http://sw4.amabis.com:5101');
|
||||
define('AMABIS_WS_URI', 'http://sw4.amabis.com:5101');
|
||||
|
||||
/** Dossiers locaux pour les documents a telecharger (PDF kbis, marques, etc...) **/
|
||||
define ('DOC_WEB_LOCAL', '/home/batch/shared/datafile/');
|
||||
define ('DOC_WEB_LOCAL', '/home/scores/batch/shared/datafile/');
|
||||
define ('DOC_WEB_URL', '/data/');
|
||||
|
||||
/** LOGGING **/
|
||||
define('LOG_PATH', '/home/scores/log');
|
||||
define('LOG_PATH', '/home/scores/batch/shared/log');
|
||||
|
||||
define ('DATETIME', date('YmdHis'));
|
||||
define ('DATE', substr(DATETIME,0,8));
|
||||
|
@ -19,12 +19,7 @@ profil.mail.email.support = supportdev@scores-decisions.com
|
||||
profil.mail.email.supportdev = supportdev@scores-decisions.com
|
||||
profil.mail.email.contact = supportdev@scores-decisions.com
|
||||
profil.mail.email.production = supportdev@scores-decisions.com
|
||||
|
||||
profil.path.batch = APPLICATION_PATH "/../scripts/jobs"
|
||||
profil.path.cache = APPLICATION_PATH "/../data/cache"
|
||||
profil.path.files = APPLICATION_PATH "/../data/files"
|
||||
profil.path.log = APPLICATION_PATH "/../data/log"
|
||||
profil.path.storage = "c:\Users\mricois\www\data\ws"
|
||||
profil.path.shared = "/home/scores/batch/shared"
|
||||
|
||||
; Metier - Infogreffe
|
||||
profil.infogreffe.wsdl = "infogreffe.wsdl"
|
||||
|
@ -8,36 +8,36 @@ define('LONGUEUR_LIGNE_SORTIE', 2000);
|
||||
define('BODACC_FTP_URL', 'ftp.journal-officiel.gouv.fr');
|
||||
define('BODACC_FTP_USER', 'SCORE');
|
||||
define('BODACC_FTP_PASS', 'SD075');
|
||||
define('BODACC_LOCAL_DIR', '/home/batch/shared/sources/bodacc/');
|
||||
define('JAL_LOCAL_DIR', '/home/batch/shared/sources/jal/');
|
||||
define('BODACC_LOCAL_DIR', '/home/scores/batch/shared/sources/bodacc/');
|
||||
define('JAL_LOCAL_DIR', '/home/scores/batch/shared/sources/jal/');
|
||||
|
||||
/** Paramétres du FTP de Hugin : Communiqués de presse **/
|
||||
define('HUGIN_FTP_URL', 'ftp.companynews.fr');
|
||||
define('HUGIN_FTP_USER', 'scores');
|
||||
define('HUGIN_FTP_PASS', 'scores_632');
|
||||
define('HUGIN_LOCAL_DIR', '/home/batch/shared/sources/infosreg/hugin/');
|
||||
define('HUGIN_LOCAL_DIR', '/home/scores/batch/shared/sources/infosreg/hugin/');
|
||||
|
||||
/** Paramétres du FTP de ActusNews : Communiqués de presse **/
|
||||
define('ACTUSNEWS_FTP_URL', 'ftp.actusnews.com');
|
||||
define('ACTUSNEWS_FTP_USER', 'scores_act');
|
||||
define('ACTUSNEWS_FTP_PASS', '6_etIwL');
|
||||
define('ACTUSNEWS_LOCAL_DIR', '/home/batch/shared/sources/infosreg/actusnews/');
|
||||
define('ACTUSNEWS_LOCAL_DIR', '/home/scores/batch/shared/sources/infosreg/actusnews/');
|
||||
|
||||
/** Paramétres du FTP de Di Release : Communiqués de presse **/
|
||||
define('DIRELEASE_FTP_URL', 'ftp.actusnews.com');
|
||||
define('DIRELEASE_FTP_USER', 'scores_dir');
|
||||
define('DIRELEASE_FTP_PASS', '-gT52sQ');
|
||||
define('DIRELEASE_LOCAL_DIR', '/home/batch/shared/sources/infosreg/direlease/');
|
||||
define('DIRELEASE_LOCAL_DIR', '/home/scores/batch/shared/sources/infosreg/direlease/');
|
||||
|
||||
/** Paramétres du FTP des Echos: Communiqués de presse **/
|
||||
define('LESECHOS_FTP_URL', 'ftp.webdisclosure.com');
|
||||
define('LESECHOS_FTP_USER', 'Scores');
|
||||
define('LESECHOS_FTP_PASS', 'scores2001');
|
||||
define('LESECHOS_LOCAL_DIR', '/home/batch/shared/sources/infosreg/lesechos/');
|
||||
define('LESECHOS_LOCAL_DIR', '/home/scores/batch/shared/sources/infosreg/lesechos/');
|
||||
|
||||
/** Paramétres du FTP de BusinessWire : Communiqués de presse **/
|
||||
define('BUSINESSWIRE_LOCAL_DIR_INCOMING', '/home/batch/shared/ftp/businesswire/');
|
||||
define('BUSINESSWIRE_LOCAL_DIR', '/home/batch/shared/infosreg/businesswire/');
|
||||
define('BUSINESSWIRE_LOCAL_DIR_INCOMING', '/home/scores/batch/shared/ftp/businesswire/');
|
||||
define('BUSINESSWIRE_LOCAL_DIR', '/home/scores/batch/shared/infosreg/businesswire/');
|
||||
|
||||
/** Base de données de S&D **/
|
||||
define ('MYSQL_HOST', '192.168.78.230');
|
||||
@ -82,7 +82,7 @@ define('AMABIS_WS_URL', 'http://sw4.amabis.com:5101');
|
||||
define('AMABIS_WS_URI', 'http://sw4.amabis.com:5101');
|
||||
|
||||
/** Dossiers locaux pour les documents a telecharger (PDF kbis, marques, etc...) **/
|
||||
define ('DOC_WEB_LOCAL', '/home/batch/shared/datafile/');
|
||||
define ('DOC_WEB_LOCAL', '/home/scores/batch/shared/datafile/');
|
||||
define ('DOC_WEB_URL', '/data/');
|
||||
|
||||
/** LOGGING **/
|
||||
|
@ -10,8 +10,8 @@
|
||||
* - "collecte" à 13h30
|
||||
*
|
||||
* Crontab
|
||||
* 0 12 * * 1-5 /home/scores/batch/scripts/calculScoreSurv.php >> /home/batch/shared/sources/log/calculScoreSurv.log
|
||||
* 0 8 * * 0,6 /home/scores/batch/scripts/calculScoreSurv.php >> /home/batch/shared/sources/log/calculScoreSurv.log
|
||||
* 0 12 * * 1-5 /home/scores/batch/scripts/calculScoreSurv.php >> /home/scores/batch/shared/sources/log/calculScoreSurv.log
|
||||
* 0 8 * * 0,6 /home/scores/batch/scripts/calculScoreSurv.php >> /home/scores/batch/shared/sources/log/calculScoreSurv.log
|
||||
*
|
||||
* TODO
|
||||
* - Option lecture sur bdd slave et ecriture sur bdd master
|
||||
|
@ -1,8 +1,8 @@
|
||||
<?php
|
||||
/*
|
||||
* Crontab
|
||||
* 01 19 * * 1-6 scores php /home/scores/batch/scripts/clients/SfrIndicateur.php --cron --load >> /home/scores/log/SfrIndicateur.log
|
||||
* 01 00 * * 1-6 scores php /home/scores/batch/scripts/clients/SfrIndicateur.php --cron --evaluate >> /home/scores/log/SfrIndicateur.log
|
||||
* 01 19 * * 1-6 scores php /home/scores/batch/scripts/clients/SfrIndicateur.php --cron --load >> /home/scores/batch/shared/log/SfrIndicateur.log
|
||||
* 01 00 * * 1-6 scores php /home/scores/batch/scripts/clients/SfrIndicateur.php --cron --evaluate >> /home/scores/batch/shared/log/SfrIndicateur.log
|
||||
*/
|
||||
error_reporting(E_ALL & ~E_STRICT & ~E_NOTICE & ~E_WARNING & ~E_DEPRECATED);
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
/*
|
||||
* Crontab
|
||||
* 01 19 * * 1-6 scores php /home/scores/batch/scripts/clients/SfrIndicateur.php --cron --load >> /home/scores/log/SfrSurv.log
|
||||
* 01 19 * * 1-6 scores php /home/scores/batch/scripts/clients/SfrIndicateur.php --cron --load >> /home/scores/batch/shared/log/SfrSurv.log
|
||||
*/
|
||||
error_reporting(E_ALL & ~E_STRICT & ~E_NOTICE & ~E_WARNING);
|
||||
|
||||
|
@ -16,10 +16,10 @@ $application = new Zend_Application(APPLICATION_ENV, APPLICATION_PATH . '/config
|
||||
$c = new Zend_Config($application->getOptions());
|
||||
|
||||
// Stockage Client => SD
|
||||
$pathClientSend = '/home/batch/shared/clients/fransbonhomme/send';
|
||||
$pathClientSend = '/home/scores/batch/shared/clients/fransbonhomme/send';
|
||||
|
||||
// Stockage SD => Client
|
||||
$pathClientRecv = '/home/batch/shared/clients/fransbonhomme/recv';
|
||||
$pathClientRecv = '/home/scores/batch/shared/clients/fransbonhomme/recv';
|
||||
|
||||
//Options
|
||||
try {
|
||||
|
@ -34,7 +34,7 @@ require_once 'Metier/bodacc/classMBodacc.php';
|
||||
require_once 'Metier/insee/classMInsee.php';
|
||||
|
||||
$tabInfosGlobal=array();
|
||||
$repPdfAssoCpt='/home/batch/shared/datafile/association/bilans/';
|
||||
$repPdfAssoCpt='/home/scores/batch/shared/datafile/association/bilans/';
|
||||
|
||||
function getNextDate($dateCour, $nbJours=7) {
|
||||
$nextDate=date('Ymd', mktime(0, 0, 0, WDate::dateT('Ymd','m', $dateCour), WDate::dateT('Ymd','d', $dateCour)+$nbJours, WDate::dateT('Ymd','Y', $dateCour)));
|
||||
|
@ -1,8 +1,8 @@
|
||||
<?php
|
||||
/**
|
||||
* crontab
|
||||
* 30 9 * * * /home/scores/batch/scripts/getInpiDecisions.php >> /home/batch/shared/sources/log/getInpiDecisions.log
|
||||
* 00 19 * * * /home/scores/batch/getInpiDecisions.php >> /home/batch/shared/sources/log/getInpiDecisionsSoir.log
|
||||
* 30 9 * * * /home/scores/batch/scripts/getInpiDecisions.php >> /home/scores/batch/shared/sources/log/getInpiDecisions.log
|
||||
* 00 19 * * * /home/scores/batch/getInpiDecisions.php >> /home/scores/batch/shared/sources/log/getInpiDecisionsSoir.log
|
||||
*/
|
||||
|
||||
// --- Define path to application directory
|
||||
@ -42,8 +42,8 @@ define('RNCS_IMR_FTP_HOST', '194.5.119.252');
|
||||
define('RNCS_IMR_FTP_LOGIN', 'score');
|
||||
define('RNCS_IMR_FTP_PASS', '1eUauTJZ');
|
||||
define('RNCS_IMR_FTP_DIR', '/var/home_ftp/score/Send/');
|
||||
define('RNCS_IMR_FTP_LOCALDIR', '/home/batch/shared/sources/rncs/extelia/');
|
||||
define('RNCS_IMR_BACKUP_DIR', '/home/batch/shared/sources/rncs/imr/');
|
||||
define('RNCS_IMR_FTP_LOCALDIR', '/home/scores/batch/shared/sources/rncs/extelia/');
|
||||
define('RNCS_IMR_BACKUP_DIR', '/home/scores/batch/shared/sources/rncs/imr/');
|
||||
|
||||
$strInfoScript='Usage : '.basename($argv[0]). " <option> [FICHIERS]
|
||||
Chargement du/des informations complémentaires en provenance des actes Infogreffe (license RNCS IMR).
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
/**
|
||||
* Crontab
|
||||
* 0 6 * * * /home/scores/batch/scripts/majBilansPostes.php >> /home/batch/shared/sources/log/majBilansPostes.log
|
||||
* 0 6 * * * /home/scores/batch/scripts/majBilansPostes.php >> /home/scores/batch/shared/sources/log/majBilansPostes.log
|
||||
*/
|
||||
//error_reporting(E_ALL & ~E_STRICT & ~E_NOTICE & ~E_WARNING & ~E_DEPRECATED);
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
<?php
|
||||
/**
|
||||
* crontab
|
||||
* 0 22 * * * /home/scores/batch/scripts/rapportsTextes.php -d >> /home/batch/shared/sources/log/rapportsTextesWeb.log
|
||||
* 0 23 * * * /home/scores/batch/scripts/rapportsTextes.php -f >> /home/batch/shared/sources/log/rapportsTextesFtp.log
|
||||
* 0 22 * * * /home/scores/batch/scripts/rapportsTextes.php -d >> /home/scores/batch/shared/sources/log/rapportsTextesWeb.log
|
||||
* 0 23 * * * /home/scores/batch/scripts/rapportsTextes.php -f >> /home/scores/batch/shared/sources/log/rapportsTextesFtp.log
|
||||
*/
|
||||
error_reporting(E_ALL & ~E_STRICT & ~E_NOTICE & ~E_WARNING & ~E_DEPRECATED);
|
||||
ini_set('auto_detect_line_endings', true);
|
||||
@ -24,10 +24,10 @@ $application = new Zend_Application(APPLICATION_ENV, APPLICATION_PATH . '/config
|
||||
$c = new Zend_Config($application->getOptions());
|
||||
|
||||
// Stockage Client => SD
|
||||
$pathClientSend = '/home/batch/shared/clients/fransbonhomme/send';
|
||||
$pathClientSend = '/home/scores/batch/shared/clients/fransbonhomme/send';
|
||||
|
||||
// Stockage SD => Client
|
||||
$pathClientRecv = '/home/batch/shared/clients/fransbonhomme/recv';
|
||||
$pathClientRecv = '/home/scores/batch/shared/clients/fransbonhomme/recv';
|
||||
|
||||
//Options
|
||||
try {
|
||||
|
@ -52,7 +52,7 @@ $c = new Zend_Config($application->getOptions());
|
||||
$db = Zend_Db::factory($c->profil->db->metier);
|
||||
Zend_Db_Table_Abstract::setDefaultAdapter($db);
|
||||
|
||||
$STORAGEBASE = "/home/batch/shared/sources/dila";
|
||||
$STORAGEBASE = "/home/scores/batch/shared/sources/dila";
|
||||
|
||||
if ($opts->from == 'restricted') {
|
||||
$FTPSERVER = "ftp.journal-officiel.gouv.fr";
|
||||
|
@ -42,7 +42,7 @@ if( isset($opts->help) || count($opts->getOptions())==0 )
|
||||
exit;
|
||||
}
|
||||
$BASEPATH = realpath(APPLICATION_PATH . '/../');
|
||||
$STORAGEBASE = "/home/batch/shared/sources/insee";
|
||||
$STORAGEBASE = "/home/scores/batch/shared/sources/insee";
|
||||
$FTP_URL = "ftp://81.255.68.110:21/download/";
|
||||
$FTP_OPTION = "-k --ssl --disable-epsv --user client_syracuse23:cLiEnT_SYRAcuse23*37654 --cacert $BASEPATH/certs/ca.pem --cert $BASEPATH/certs/client.pem --key $BASEPATH/certs/key.pem";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user