Selaa lähdekoodia

Se actualiza comando

Maxi Schvindt 7 vuotta sitten
vanhempi
commit
17be1d3639
1 muutettua tiedostoa jossa 5 lisäystä ja 2 poistoa
  1. 5 2
      src/StatsBundle/Command/GenerateRemoteCrontabCommand.php

+ 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}";