Bozhidar Slaveykov 1 年之前
父節點
當前提交
f74656fb63
共有 2 個文件被更改,包括 3 次插入3 次删除
  1. 2 2
      web/app/Actions/CreateLinuxWebUser.php
  2. 1 1
      web/app/Console/Commands/ApachePingWebsitesWithCurl.php

+ 2 - 2
web/app/Actions/CreateLinuxWebUser.php

@@ -32,8 +32,8 @@ class CreateLinuxWebUser
         $command = 'adduser --disabled-password --gecos "" "'.$username.'"';
         $output .= ShellApi::exec($command);
 
-        $command = 'groupadd '.$username;
-        $output .= ShellApi::exec($command);
+//        $command = 'groupadd '.$username;
+//        $output .= ShellApi::exec($command);
 
         $command = 'usermod -a -G www-data '.$username;
         $output .= ShellApi::exec($command);

+ 1 - 1
web/app/Console/Commands/ApachePingWebsitesWithCurl.php

@@ -35,7 +35,7 @@ class ApachePingWebsitesWithCurl extends Command
             $newSubscription = new \App\Models\HostingSubscription();
             $newSubscription->customer_id = $findCustomer->id;
             $newSubscription->hosting_plan_id = $findHostingPlan->id;
-            $newSubscription->domain = 'next-server-1-'.$i.rand(1111,9999).'.test.multiweber.com';
+            $newSubscription->domain = 'next-'.rand(111,999).'server-1-'.$i.rand(1111,9999).'.test.multiweber.com';
             $newSubscription->save();
         }