diff --git a/vendor/phangoapp/leviathanutils/src/Linux.php b/vendor/phangoapp/leviathanutils/src/Linux.php index 32ede4c..1e8a531 100644 --- a/vendor/phangoapp/leviathanutils/src/Linux.php +++ b/vendor/phangoapp/leviathanutils/src/Linux.php @@ -93,7 +93,7 @@ class Linux { static public function add_new_user($username, $password='', $user_directory='', $shell='/usr/sbin/nologin') { - $str_user="sudo useradd -m -s ${shell} ${username}"; + $str_user="sudo useradd -m -s ${shell}"; if($password!='') { @@ -113,6 +113,8 @@ class Linux { } + $str_user.=" ${username}"; + Linux::shell_command([$str_user]); }