From 6bfc7e327503252810c4753374be49b0c3e7ce92 Mon Sep 17 00:00:00 2001 From: mischa Date: Fri, 22 May 2020 19:21:42 +0200 Subject: [PATCH] changed some variabled around, escaped qx() variabled --- deploy.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy.pl b/deploy.pl index a04da67..dc6be4d 100755 --- a/deploy.pl +++ b/deploy.pl @@ -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";