diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-07-06 17:06:52 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-07-06 17:06:52 +0200 |
commit | 8a2fe820a0e97f3adc35a1b662ee1eb854057829 (patch) | |
tree | 302aaff8ff4362dda4e8b71f10ea845028502c2a /gitjoe-newuser.pl | |
parent | Fix (diff) | |
download | joe-scripts-8a2fe820a0e97f3adc35a1b662ee1eb854057829.tar.gz joe-scripts-8a2fe820a0e97f3adc35a1b662ee1eb854057829.tar.bz2 joe-scripts-8a2fe820a0e97f3adc35a1b662ee1eb854057829.tar.xz joe-scripts-8a2fe820a0e97f3adc35a1b662ee1eb854057829.tar.zst joe-scripts-8a2fe820a0e97f3adc35a1b662ee1eb854057829.zip |
Trying that
Diffstat (limited to 'gitjoe-newuser.pl')
-rwxr-xr-x | gitjoe-newuser.pl | 19 |
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' ); } |