Luciano Andrade 7 роки тому
батько
коміт
295d5a57ec

+ 1 - 1
src/StatsBundle/Command/GenerateCrontabCommand.php

@@ -46,7 +46,7 @@ class GenerateCrontabCommand extends ContainerAwareCommand
         if(is_null($pathApp)) {
             $pathApp = $this->getContainer()->getParameter('app_path');
         }
-        $pathConsole = "root $(wich php) {$pathApp}/bin/console"; 
+        $pathConsole = "root $(which php) {$pathApp}/bin/console"; 
         
         $serverDevices = $doctrine->getRepository('\StatsBundle\Entity\DeviceServer')->findAll();
         

+ 1 - 1
src/StatsBundle/Command/GenerateRemoteCrontabCommand.php

@@ -56,7 +56,7 @@ class GenerateRemoteCrontabCommand extends ContainerAwareCommand
         if (is_null($pathApp)) {
             $pathApp = $this->getContainer()->getParameter('app_path');
         }
-        $pathConsole = "root $(wich php) {$pathApp}/bin/console";
+        $pathConsole = "root $(which php) {$pathApp}/bin/console";
 
         $serverDevices = $doctrine->getRepository('\StatsBundle\Entity\DeviceServer')->findAll();