aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-07-26 15:12:28 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-07-26 15:12:28 +0200
commita2a0a0640890872051e9619caf1b213272df67e8 (patch)
treebd38f63b7c645b030096a72012c99fb75d96def7
parentFix (diff)
downloadjoe-scripts-a2a0a0640890872051e9619caf1b213272df67e8.tar.gz
joe-scripts-a2a0a0640890872051e9619caf1b213272df67e8.tar.bz2
joe-scripts-a2a0a0640890872051e9619caf1b213272df67e8.tar.xz
joe-scripts-a2a0a0640890872051e9619caf1b213272df67e8.tar.zst
joe-scripts-a2a0a0640890872051e9619caf1b213272df67e8.zip
Alright
-rwxr-xr-xsrc/gitjoe/adduser.pl6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gitjoe/adduser.pl b/src/gitjoe/adduser.pl
index f1e562d..28b226a 100755
--- a/src/gitjoe/adduser.pl
+++ b/src/gitjoe/adduser.pl
@@ -41,9 +41,9 @@ yes
no
EOF"
);
- my ($login, $pass, $uid, $gid) = getpwnam($user);
+ my ($login, $passwd, $uid, $gid) = getpwnam($user);
mkdir $home_dir . '.ssh/', 0700;
- chown $uid, $gid, $home_dir . '.ssh/'
+ chown $uid, $gid, $home_dir . '.ssh/';
# system(
# '/usr/sbin/chown',
# '-v',
@@ -53,7 +53,7 @@ EOF"
open(my $fh, '>:encoding(UTF-8)', $home_dir . '.ssh/authorized_keys');
print $fh $sshkey . "\n";
close($fh);
- chown $uid, $gid, $home_dir . '.ssh/authorized_keys'
+ chown $uid, $gid, $home_dir . '.ssh/authorized_keys';
# system(
# '/usr/sbin/chown',
# '-v',