From 37d034767a8890bf3b95027598ac63e5af117c81 Mon Sep 17 00:00:00 2001 From: gashapwn Date: Tue, 29 Dec 2020 03:58:55 +0000 Subject: [PATCH] provision.pl - added JSON perl dependency --- perl-script/provision.pl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/perl-script/provision.pl b/perl-script/provision.pl index 7fa03a4..f73cfb5 100644 --- a/perl-script/provision.pl +++ b/perl-script/provision.pl @@ -31,8 +31,10 @@ if($pwuid ne "root"){ } unless( ($admin_un) = `tail /etc/passwd | grep -v "nobody:"` =~ /([^:\n]+):[^:]+:[0-9]{4,}/){ + system("pkg_add p5-JSON"); `wget --quiet https://git.lain.church/gashapwn/lyadmin/raw/branch/master/perl-script/create_user.pl -O create_admin.pl`; printf("run create_admin.pl to create an admin user\n"); + die "or add with useradd and add an ssh key to ~/.ssh/authorizedkeys\n"; }