diff --git a/vendor/phangoapp/leviathanutils/src/Linux.php b/vendor/phangoapp/leviathanutils/src/Linux.php index 590e201..69e2d85 100644 --- a/vendor/phangoapp/leviathanutils/src/Linux.php +++ b/vendor/phangoapp/leviathanutils/src/Linux.php @@ -91,7 +91,7 @@ class Linux { } - static public function add_new_user($user, $password='', $group='', $user_directory='', $shell='/usr/sbin/nologin') { + static public function add_new_user($user, $password='', $user_directory='', $shell='/usr/sbin/nologin') { $str_user='sudo useradd -m -s ${shell} ${username}'; @@ -103,9 +103,11 @@ class Linux { } - if($group!='') { + if($user_directory!='') { + $str_user.=" -d \"${user_directory}\""; + }