provision.pl - added JSON perl dependency
This commit is contained in:
parent
3bf739cbe7
commit
37d034767a
@ -31,8 +31,10 @@ if($pwuid ne "root"){
|
|||||||
}
|
}
|
||||||
|
|
||||||
unless( ($admin_un) = `tail /etc/passwd | grep -v "nobody:"` =~ /([^:\n]+):[^:]+:[0-9]{4,}/){
|
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`;
|
`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");
|
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";
|
die "or add with useradd and add an ssh key to ~/.ssh/authorizedkeys\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user