initial commit of file from CVS for smeserver-virtualbox on Sat Sep 7 21:14:17 AEST 2024

This commit is contained in:
Trevor Batley
2024-09-07 21:14:17 +10:00
parent b69cbf6dc9
commit d2de291fe3
26 changed files with 973 additions and 2 deletions

View File

@@ -0,0 +1,8 @@
{
my $rec = $DB->get('vboxweb-service') || $DB->new_record('vboxweb-service', {type => 'service'});
if (not exists $rec{'password'}) {
my @allowed = ('a'..'z', 'A'..'Z', 0..9);
my $pass = join '', map $allowed[rand @allowed], 0..32;
my $updateconfig = $rec->set_prop('password', $pass);
}
}