This commit is contained in:
Bozhidar Slaveykov 2024-04-07 16:35:24 +03:00
parent d1ab82f06c
commit f74656fb63
2 changed files with 3 additions and 3 deletions

View file

@ -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);

View file

@ -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();
}