Skip to content

Commit 6ed7281

Browse files
Update autoinstall.php
Update Operating Systems created during initial installation; align product group/group slugs and product name/product slugs.
1 parent c565502 commit 6ed7281

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

whmcs/modules/servers/virtualizor_cloud/autoinstall.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,10 @@ function virtualizor_cloud_installpredefined()
3737
'debian-9.4-x86_64|Debian 9 (64 bit)',
3838
'debian-10-x86_64|Debian 10 (64 bit)',
3939
'debian-11-x86_64|Debian 11 (64 bit)',
40+
'debian-12-x86_64|Debian 11 (64 bit)',
4041
'fedora-34-x86_64|Fedora 34 (64 bit)',
4142
'scientific-7.4-x86_64|Scientific Linux 7.4 (64 bit)',
43+
'suse-13.1-x86_64|openSUSE 13.1 (64 bit)',
4244
'suse-15.1-x86_64|openSUSE 15.1 (64 bit)',
4345
'ubuntu-18.04-x86_64|Ubuntu 18.04 (64 bit)',
4446
'ubuntu-20.04-x86_64|Ubuntu 20.04 (64 bit)',
@@ -92,7 +94,7 @@ function virtualizor_cloud_installpredefined()
9294
$newProduct = new WHMCS\Product\Product();
9395
$newProduct->type = 'server';
9496
$newProduct->productGroupId = $groupId;
95-
$newProduct->name = 'KVM-1GB';
97+
$newProduct->name = 'KVM-SSD-1GB';
9698
$newProduct->paymentType = "free";
9799
$newProduct->showDomainOptions = 0;
98100
$newProduct->module = 'virtualizor_cloud';
@@ -108,8 +110,8 @@ function virtualizor_cloud_installpredefined()
108110
Capsule::table('tblproducts_slugs')->insert([
109111
'product_id' => $newProduct->id,
110112
'group_id' => $groupId,
111-
'group_slug' => 'vps-servers',
112-
'slug' => 'kvm-1gb',
113+
'group_slug' => 'cloud-vps',
114+
'slug' => 'kvm-ssd-1gb',
113115
'active' => 1,
114116
'clicks' => 1,
115117
]);

0 commit comments

Comments
 (0)