initial commit of file from CVS for smeserver-virtualbox on Sat Sep 7 21:14:17 AEST 2024
This commit is contained in:
8
root/etc/e-smith/db/configuration/migrate/virtualbox
Normal file
8
root/etc/e-smith/db/configuration/migrate/virtualbox
Normal 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);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user