aboutsummaryrefslogtreecommitdiffstats
path: root/gitjoe-newuser.pl
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-07-06 17:06:52 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-07-06 17:06:52 +0200
commit8a2fe820a0e97f3adc35a1b662ee1eb854057829 (patch)
tree302aaff8ff4362dda4e8b71f10ea845028502c2a /gitjoe-newuser.pl
parentFix (diff)
downloadjoe-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-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'
);
}