aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xgitjoe-addsshkey.pl2
-rwxr-xr-xgitjoe-newuser.pl2
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',