aboutsummaryrefslogtreecommitdiffstats
path: root/gitjoe-newuser.pl
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xgitjoe-newuser.pl12
1 files changed, 11 insertions, 1 deletions
diff --git a/gitjoe-newuser.pl b/gitjoe-newuser.pl
index d17c477..471dd94 100755
--- a/gitjoe-newuser.pl
+++ b/gitjoe-newuser.pl
@@ -14,11 +14,12 @@ sub main {
exit 1;
}
my $usr = $ARGV[0];
+ my $pass = $ARGV[1];
system(
'/usr/local/bin/dash',
'-c',
"adduser << EOF
-". $usr . "
+" . $usr . "
@@ -26,6 +27,15 @@ sub main {
git-shell
+
+
+
+
+" . $pass . "
+" . $pass . "
+
+yes
+no
EOF"
);
}