cfgfoo

git clone https://orangeshoelaces.net/git/cfgfoo.git

9c4ed5558d3892c7566570d2ac44ff0d1e4c3917

Author: Vasilii Kolobkov on 01/10/2019

Committer: Vasilii Kolobkov on 01/10/2019

Pass all the arguments through to to useradd(1)

Stats

steps/obsd/users/add | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

Patch

diff --git a/steps/obsd/users/add b/steps/obsd/users/add
index d3bc194..79687ce 100644
--- a/steps/obsd/users/add
+++ b/steps/obsd/users/add
@@ -1,7 +1,7 @@
 step_taken() {
-	userinfo "$1" > /dev/null
+	userinfo "$(eval echo \${$#})" > /dev/null
 }
 
 take_step() {
-	useradd -d "/home/$1" -m -e 0 -g =uid -L default -s /bin/ksh "$1"
+	useradd "$@"
 }