瀏覽代碼

fixed regex in provision.pl

tags/release-00
gashapwn 3 年之前
父節點
當前提交
e471a97a13
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      perl-script/provision.pl

+ 1
- 1
perl-script/provision.pl 查看文件

@@ -10,7 +10,7 @@ my $admin_un;

# Check /etc/passwd for the username created during
# installation
if( ($admin_un) = `tail /etc/passwd` =~ /^([^:]+):[^:]+:[0-9]{4,}/){
if( ($admin_un) = `tail /etc/passwd` =~ /([^:]+):[^:]+:[0-9]{4,}/){
printf("admin user will be set to %s\n", $admin_un);
}else{
die "create a non-root user & set user passsword before running this script."


Loading…
取消
儲存