Browse Source

no auto reboot after disk update

andre 4 years ago
parent
commit
9e0c7c258f
1 changed files with 2 additions and 1 deletions
  1. 2 1
      app/UI/Disk/Providers/DiskProvider.php

+ 2 - 1
app/UI/Disk/Providers/DiskProvider.php

@@ -131,11 +131,12 @@ class DiskProvider extends BaseDataProvider implements ClientArea
         //backup
         //backup
         $backup = $this->formData['backup'] == "on" ? null : 0;
         $backup = $this->formData['backup'] == "on" ? null : 0;
         $hdd->setBackup($backup)->update();
         $hdd->setBackup($backup)->update();
+/* thurdata no auto reboot
         if ($vm->isRunning() &&
         if ($vm->isRunning() &&
             !Job::waiting()->ofJob(RebootVmJob::class)->ofHostingId($this->getWhmcsParamByKey("serviceid"))->ofCustomId($vmId)->count())
             !Job::waiting()->ofJob(RebootVmJob::class)->ofHostingId($this->getWhmcsParamByKey("serviceid"))->ofCustomId($vmId)->count())
         {
         {
             queue(RebootVmJob::class, [], null, "hosting", $this->getWhmcsParamByKey("serviceid"),$vmId);
             queue(RebootVmJob::class, [], null, "hosting", $this->getWhmcsParamByKey("serviceid"),$vmId);
-        }
+        } */
         $resourceManager = new ResourceManager();
         $resourceManager = new ResourceManager();
         return (new HtmlDataJsonResponse())
         return (new HtmlDataJsonResponse())
             ->setStatusSuccess()
             ->setStatusSuccess()