This commit is contained in:
Bozhidar Slaveykov 2024-04-06 15:36:42 +03:00
parent da44186ca9
commit 76d1f10464
2 changed files with 2 additions and 2 deletions

View file

@ -27,7 +27,7 @@ class CreateLinuxWebUser
$username = $this->username;
$password = $this->password;
$command = 'adduser --disabled-password --gecos "" "'.$username;
$command = 'adduser --disabled-password --gecos "" "'.$username.'"';
$output .= ShellApi::exec($command);
$command = 'groupadd '.$username;

View file

@ -53,7 +53,7 @@ class ModelHostingSubscriptionCreatedListener
$createLinuxWebUser->setUsername($systemUsername);
$createLinuxWebUser->setPassword($systemPassword);
$createLinuxWebUserOutput = $createLinuxWebUser->handle();
if (strpos($createLinuxWebUserOutput, 'Creating home directory') !== false) {
$findHostingSubscription->system_username = $systemUsername;