initial commit of file from CVS for smeserver-phpvirtualbox on Sat Sep 7 20:54:21 AEST 2024

This commit is contained in:
Trevor Batley
2024-09-07 20:54:21 +10:00
parent 8a9fe01cda
commit a8d97be1bd
26 changed files with 1202 additions and 2 deletions

View File

@@ -0,0 +1,29 @@
{
my $rec = $DB->get('phpvirtualbox')
|| $DB->new_record('phpvirtualbox', {type => 'configuration'});
# webauth replaced by authType, which can have multiple values
if ($rec->prop('webauth')) {
$rec->set_prop('authType', 'WebAuth');
$rec->del_prop('webauth');
}
if ( -e '/etc/e-smith/db/configuration/defaults/phpvirtualbox/Group' ) {
unlink '/etc/e-smith/db/configuration/defaults/phpvirtualbox/Group';
}
# Group has been replaced with userGroups, which already allowed for multiple groups
if ($rec->prop('Group')) {
$rec->set_prop('userGroups', $rec->prop('Group'));
$rec->del_prop('Group');
}
# User replaced by Users, because it already allows for multiple users
if ($rec->prop('User')) {
$rec->set_prop('Users', $rec->prop('User'));
$rec->del_prop('User');
}
if ( -e '/etc/e-smith/db/configuration/defaults/phpvirtualbox/User' ) {
unlink '/etc/e-smith/db/configuration/defaults/phpvirtualbox/User';
}
}