From 6883ab1d67f52edb4c9aec24d9e3028e5a36a737 Mon Sep 17 00:00:00 2001 From: lgromero Date: Mon, 27 May 2024 12:24:23 +0200 Subject: [PATCH] refs #311 #394 deletes some innecesaries files --- etc/ogAdmAgent-eth0.cfg | 7 --- etc/ogAdmAgent-eth1.cfg | 7 --- etc/ogAdmAgent.cfg | 7 --- etc/ogAdmRepo-eth0.cfg | 2 - etc/ogAdmRepo-eth1.cfg | 2 - etc/ogAdmRepo.cfg | 2 - etc/ogAdmServer-eth0.cfg | 8 --- etc/ogAdmServer-eth1.cfg | 8 --- etc/ogAdmServer.cfg | 8 --- .../Service/CurlRequestService.php | 3 +- src/OgBootBundle/constants.php | 58 ------------------- 11 files changed, 1 insertion(+), 111 deletions(-) delete mode 100644 etc/ogAdmAgent-eth0.cfg delete mode 100644 etc/ogAdmAgent-eth1.cfg delete mode 100644 etc/ogAdmAgent.cfg delete mode 100644 etc/ogAdmRepo-eth0.cfg delete mode 100644 etc/ogAdmRepo-eth1.cfg delete mode 100644 etc/ogAdmRepo.cfg delete mode 100644 etc/ogAdmServer-eth0.cfg delete mode 100644 etc/ogAdmServer-eth1.cfg delete mode 100644 etc/ogAdmServer.cfg delete mode 100644 src/OgBootBundle/constants.php diff --git a/etc/ogAdmAgent-eth0.cfg b/etc/ogAdmAgent-eth0.cfg deleted file mode 100644 index 9245211..0000000 --- a/etc/ogAdmAgent-eth0.cfg +++ /dev/null @@ -1,7 +0,0 @@ -ServidorAdm=172.17.8.71 -PUERTO=2008 -USUARIO=usuog -PASSWORD=passusuog -datasource=localhost -CATALOG=ogAdmBD - diff --git a/etc/ogAdmAgent-eth1.cfg b/etc/ogAdmAgent-eth1.cfg deleted file mode 100644 index 39c1fa7..0000000 --- a/etc/ogAdmAgent-eth1.cfg +++ /dev/null @@ -1,7 +0,0 @@ -ServidorAdm=192.168.2.1 -PUERTO=2008 -USUARIO=usuog -PASSWORD=passusuog -datasource=localhost -CATALOG=ogAdmBD - diff --git a/etc/ogAdmAgent.cfg b/etc/ogAdmAgent.cfg deleted file mode 100644 index 39c1fa7..0000000 --- a/etc/ogAdmAgent.cfg +++ /dev/null @@ -1,7 +0,0 @@ -ServidorAdm=192.168.2.1 -PUERTO=2008 -USUARIO=usuog -PASSWORD=passusuog -datasource=localhost -CATALOG=ogAdmBD - diff --git a/etc/ogAdmRepo-eth0.cfg b/etc/ogAdmRepo-eth0.cfg deleted file mode 100644 index 660a3d0..0000000 --- a/etc/ogAdmRepo-eth0.cfg +++ /dev/null @@ -1,2 +0,0 @@ -IPlocal=172.17.8.71 -ApiToken=REPOKEY diff --git a/etc/ogAdmRepo-eth1.cfg b/etc/ogAdmRepo-eth1.cfg deleted file mode 100644 index 1b520f5..0000000 --- a/etc/ogAdmRepo-eth1.cfg +++ /dev/null @@ -1,2 +0,0 @@ -IPlocal=192.168.2.1 -ApiToken=57ba8db739566d8f3e645ebb020ecbcf diff --git a/etc/ogAdmRepo.cfg b/etc/ogAdmRepo.cfg deleted file mode 100644 index 1b520f5..0000000 --- a/etc/ogAdmRepo.cfg +++ /dev/null @@ -1,2 +0,0 @@ -IPlocal=192.168.2.1 -ApiToken=57ba8db739566d8f3e645ebb020ecbcf diff --git a/etc/ogAdmServer-eth0.cfg b/etc/ogAdmServer-eth0.cfg deleted file mode 100644 index be39e0f..0000000 --- a/etc/ogAdmServer-eth0.cfg +++ /dev/null @@ -1,8 +0,0 @@ -ServidorAdm=172.17.8.71 -PUERTO=2008 -USUARIO=usuog -PASSWORD=passusuog -datasource=localhost -CATALOG=ogAdmBD -INTERFACE=eth0 -APITOKEN=REPOKEY diff --git a/etc/ogAdmServer-eth1.cfg b/etc/ogAdmServer-eth1.cfg deleted file mode 100644 index e56ea12..0000000 --- a/etc/ogAdmServer-eth1.cfg +++ /dev/null @@ -1,8 +0,0 @@ -ServidorAdm=192.168.2.1 -PUERTO=2008 -USUARIO=usuog -PASSWORD=passusuog -datasource=localhost -CATALOG=ogAdmBD -INTERFACE=eth1 -APITOKEN=e9823768e959157556f31d66ecf0d918 diff --git a/etc/ogAdmServer.cfg b/etc/ogAdmServer.cfg deleted file mode 100644 index e56ea12..0000000 --- a/etc/ogAdmServer.cfg +++ /dev/null @@ -1,8 +0,0 @@ -ServidorAdm=192.168.2.1 -PUERTO=2008 -USUARIO=usuog -PASSWORD=passusuog -datasource=localhost -CATALOG=ogAdmBD -INTERFACE=eth1 -APITOKEN=e9823768e959157556f31d66ecf0d918 diff --git a/src/OgBootBundle/Service/CurlRequestService.php b/src/OgBootBundle/Service/CurlRequestService.php index 28ae73a..ad5fec0 100644 --- a/src/OgBootBundle/Service/CurlRequestService.php +++ b/src/OgBootBundle/Service/CurlRequestService.php @@ -2,7 +2,6 @@ // src/OgBootBundle/Service/CurlRequestService.php namespace App\OgBootBundle\Service; -require_once __DIR__ . '/../constants.php'; use Exception; include_once (__DIR__ . '/../../../etc/php-vars.php'); $conf_file = parse_ini_file(__DIR__ . '/../../../etc/ogAdmServer.cfg'); @@ -68,7 +67,7 @@ class CurlRequestService { $ogLiveCliPath = sprintf("%s/bin/oglivecli", dirname(dirname(dirname(__DIR__)))); - $command = sprintf("%s %s", $ogLiveCliPath, escapeshellarg($parameter)); + $command = sprintf("%s %s", $ogLiveCliPath, $parameter); syslog(LOG_INFO, 'command '.$command); $output = shell_exec($command); diff --git a/src/OgBootBundle/constants.php b/src/OgBootBundle/constants.php deleted file mode 100644 index 5a9dbc7..0000000 --- a/src/OgBootBundle/constants.php +++ /dev/null @@ -1,58 +0,0 @@ - \ No newline at end of file