aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xgitjoe-newuser.pl19
1 files changed, 11 insertions, 8 deletions
diff --git a/gitjoe-newuser.pl b/gitjoe-newuser.pl
index 30510f9..8f7b0e3 100755
--- a/gitjoe-newuser.pl
+++ b/gitjoe-newuser.pl
@@ -39,17 +39,20 @@ yes
no
EOF"
);
- my $gitshell_cmds = "cd
-touch
-git
-ls";
- open(my $fh, '>:encoding(UTF-8)', $home_dir . 'git-shell-commands');
- print $fh $gitshell_cmds;
- close($fh);
+# my $gitshell_cmds = "cd
+# touch
+# git
+# ls";
+
+ system(
+ '/usr/local/bin/dash',
+ '-c',
+ '/bin/mkdir -v' . $home_dir . 'git-shell-commands'
+ );
system(
'/usr/local/bin/dash',
'-c',
- '/bin/chmod +x ' . $home_dir . 'git-shell-commands'
+ '/bin/ln -s /bin/ls ' . $home_dir . 'git-shell-commands/ls'
);
}