changed some variabled around, escaped qx() variabled
This commit is contained in:
parent
0a721c1fa4
commit
6bfc7e3275
|
@ -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";
|
||||
|
|
Loading…
Reference in New Issue