From 394ceed56cdd71cc7cc6199a863f9d10b2ce626f Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Mon, 6 Jul 2020 17:59:42 +0200 Subject: Better like this --- gitjoe-addsshkey.pl | 2 +- gitjoe-newuser.pl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gitjoe-addsshkey.pl b/gitjoe-addsshkey.pl index 0768c0a..d7e0477 100755 --- a/gitjoe-addsshkey.pl +++ b/gitjoe-addsshkey.pl @@ -15,7 +15,7 @@ sub main { } my $usr = $ARGV[0]; my $sshkey = "no-port-forwarding,no-X11-forwarding,no-agent-forwarding,no-pty "; - $sshkey += $ARGV[2]; + $sshkey = $sshkey . $ARGV[1]; my $home_dir = '/usr/home/' . $usr . '/'; open(my $fh, '>>:encoding(UTF-8)', $home_dir . '.ssh/authorized_keys'); print $fh "$sshkey\n"; diff --git a/gitjoe-newuser.pl b/gitjoe-newuser.pl index c64892d..a141277 100755 --- a/gitjoe-newuser.pl +++ b/gitjoe-newuser.pl @@ -16,7 +16,7 @@ sub main { my $usr = $ARGV[0]; my $pass = $ARGV[1]; my $sshkey = "no-port-forwarding,no-X11-forwarding,no-agent-forwarding,no-pty "; - $sshkey += $ARGV[2]; + $sshkey = $sshkey . $ARGV[2]; my $home_dir = '/usr/home/' . $usr . '/'; system( '/usr/local/bin/dash', -- cgit v1.2.3