fixed regex in provision.pl

This commit is contained in:
gashapwn 2020-11-28 20:28:55 +00:00
parent 2901c397a7
commit e471a97a13

View File

@ -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."