|
|
@@ -32,10 +32,12 @@ 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/gasha-branch/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"; |
|
|
|
printf("to provision the instance there must be a non root user with an authorized_keys file"); |
|
|
|
printf("run create_admin.pl to create an admin user\n"); |
|
|
|
die "or add with useradd and add an ssh key to ~/.ssh/authorized_keys\n"; |
|
|
|
} |
|
|
|
|
|
|
|
# install git |
|
|
|