소스 검색

provision.pl - added JSON perl dependency

master
gashapwn 3 년 전
부모
커밋
37d034767a
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. +2
    -0
      perl-script/provision.pl

+ 2
- 0
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";
}



불러오는 중...
취소
저장