aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-07-06 17:35:37 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-07-06 17:35:37 +0200
commit0d5d2793ba7fa511f218a16be5cb93edbe94895d (patch)
treec271251996e3f9c1daa3712ad06b126980c8fb39
parentpush (diff)
downloadjoe-scripts-0d5d2793ba7fa511f218a16be5cb93edbe94895d.tar.gz
joe-scripts-0d5d2793ba7fa511f218a16be5cb93edbe94895d.tar.bz2
joe-scripts-0d5d2793ba7fa511f218a16be5cb93edbe94895d.tar.xz
joe-scripts-0d5d2793ba7fa511f218a16be5cb93edbe94895d.tar.zst
joe-scripts-0d5d2793ba7fa511f218a16be5cb93edbe94895d.zip
Fix
-rwxr-xr-xgitjoe-addsshkey.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/gitjoe-addsshkey.pl b/gitjoe-addsshkey.pl
index 7f280f9..b42f117 100755
--- a/gitjoe-addsshkey.pl
+++ b/gitjoe-addsshkey.pl
@@ -16,7 +16,7 @@ sub main {
my $usr = $ARGV[0];
my $sshkey = $ARGV[1];
my $home_dir = '/usr/home/' . $usr . '/';
- open(my $fh, '>:encoding(UTF-8)', $home_dir . '.ssh/authorized_keys');
+ open(my $fh, '>>:encoding(UTF-8)', $home_dir . '.ssh/authorized_keys');
print $fh "$sshkey\n";
close($fh);
exit;