added option to disable creation of default subdomain; fixes #960

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2021-07-21 09:53:54 +02:00
parent 8a4aa2a721
commit 41a470fe36
8 changed files with 29 additions and 7 deletions

View File

@@ -678,6 +678,7 @@ opcache.interned_strings_buffer'),
('system', 'include_default_vhostconf', '0'),
('system', 'soaemail', ''),
('system', 'domaindefaultalias', '0'),
('system', 'createstdsubdom_default', '1'),
('api', 'enabled', '0'),
('2fa', 'enabled', '1'),
('panel', 'decimal_places', '4'),
@@ -720,7 +721,7 @@ opcache.interned_strings_buffer'),
('panel', 'logo_overridetheme', '0'),
('panel', 'logo_overridecustom', '0'),
('panel', 'version', '0.10.27'),
('panel', 'db_version', '202107200');
('panel', 'db_version', '202107210');
DROP TABLE IF EXISTS `panel_tasks`;

View File

@@ -875,3 +875,10 @@ if (\Froxlor\Froxlor::isDatabaseVersion('202107070')) {
lastStepStatus(0);
\Froxlor\Froxlor::updateToDbVersion('202107200');
}
if (\Froxlor\Froxlor::isDatabaseVersion('202107200')) {
showUpdateStep("Adding settings to define default value of 'create std-subdomain' when creating a customer", true);
Settings::AddNew("system.createstdsubdom_default", '1');
lastStepStatus(0);
\Froxlor\Froxlor::updateToDbVersion('202107210');
}