changed some variabled around, escaped qx() variabled

This commit is contained in:
mischa 2020-05-22 19:21:42 +02:00
parent 0a721c1fa4
commit 6bfc7e3275
1 changed files with 1 additions and 1 deletions

View File

@ -242,7 +242,7 @@ sub create_accounts {
if (! $id) {
my $jot_pass = qx(jot -rcs '' 20 43 125);
chomp($jot_pass);
my $_encrypted_pass = qx(encrypt '${jot_pass}');
my $encrypt_pass = qx(encrypt '${jot_pass}');
chomp($encrypt_pass);
my $output = qx(/usr/sbin/useradd -m -G $_group -p '${encrypt_pass}' $_owner);
open my $fh_authorized, ">>", "/home/$_owner/.ssh/authorized_keys";