Sfoglia il codice sorgente

Se actualiza comando

Maxi Schvindt 7 anni fa
parent
commit
17be1d3639

+ 5 - 2
src/StatsBundle/Command/GenerateRemoteCrontabCommand.php

@@ -240,8 +240,11 @@ class GenerateRemoteCrontabCommand extends ContainerAwareCommand
                 $commands[] = "*/{$timeScan} * * * * {$pathConsole} {$amqpRemote} {$routing_key} cmts:cm:scan {$params}";
                 $commands[] = "*/{$timeScan} * * * * {$pathConsole} {$amqpRemote} {$routing_key} cmts:interface:scan {$params}";
                 
-                $params .= " --save-historic={$saveHistoric}";
-                if ($amqp) $params .= " --args=--save-historic:{$saveHistoric}";
+                if ($amqp) {
+                    $params .= " --args=--save-historic:{$saveHistoric}";
+                } else {
+                    $params .= " --save-historic={$saveHistoric}";
+                }
                 
                 $commands[] = "*/{$timeScan} * * * * {$pathConsole} {$amqpRemote} {$routing_key} cmts:interface:stats {$params}";