remove old files from 0.9.x to avoid conflicts and errors; change mod_proxy-usage and ACMEv2 default values to true
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
@@ -128,7 +128,7 @@ return array(
|
|||||||
'settinggroup' => 'system',
|
'settinggroup' => 'system',
|
||||||
'varname' => 'leapiversion',
|
'varname' => 'leapiversion',
|
||||||
'type' => 'option',
|
'type' => 'option',
|
||||||
'default' => '1',
|
'default' => '2',
|
||||||
'option_mode' => 'one',
|
'option_mode' => 'one',
|
||||||
'option_options' => array(
|
'option_options' => array(
|
||||||
'1' => 'ACME v1',
|
'1' => 'ACME v1',
|
||||||
|
|||||||
@@ -99,7 +99,7 @@ return array(
|
|||||||
'settinggroup' => 'phpfpm',
|
'settinggroup' => 'phpfpm',
|
||||||
'varname' => 'use_mod_proxy',
|
'varname' => 'use_mod_proxy',
|
||||||
'type' => 'bool',
|
'type' => 'bool',
|
||||||
'default' => false,
|
'default' => true,
|
||||||
'visible' => \Froxlor\Settings::Get('system.apache24'),
|
'visible' => \Froxlor\Settings::Get('system.apache24'),
|
||||||
'save_method' => 'storeSettingField'
|
'save_method' => 'storeSettingField'
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -405,7 +405,7 @@ INSERT INTO `panel_settings` (`settinggroup`, `varname`, `value`) VALUES
|
|||||||
('phpfpm', 'defaultini', '1'),
|
('phpfpm', 'defaultini', '1'),
|
||||||
('phpfpm', 'vhost_defaultini', '2'),
|
('phpfpm', 'vhost_defaultini', '2'),
|
||||||
('phpfpm', 'fastcgi_ipcdir', '/var/lib/apache2/fastcgi/'),
|
('phpfpm', 'fastcgi_ipcdir', '/var/lib/apache2/fastcgi/'),
|
||||||
('phpfpm', 'use_mod_proxy', '0'),
|
('phpfpm', 'use_mod_proxy', '1'),
|
||||||
('phpfpm', 'ini_flags', 'asp_tags
|
('phpfpm', 'ini_flags', 'asp_tags
|
||||||
display_errors
|
display_errors
|
||||||
display_startup_errors
|
display_startup_errors
|
||||||
@@ -615,7 +615,7 @@ opcache.interned_strings_buffer'),
|
|||||||
('system', 'letsencryptkeysize', '4096'),
|
('system', 'letsencryptkeysize', '4096'),
|
||||||
('system', 'letsencryptreuseold', 0),
|
('system', 'letsencryptreuseold', 0),
|
||||||
('system', 'leenabled', '0'),
|
('system', 'leenabled', '0'),
|
||||||
('system', 'leapiversion', '1'),
|
('system', 'leapiversion', '2'),
|
||||||
('system', 'backupenabled', '0'),
|
('system', 'backupenabled', '0'),
|
||||||
('system', 'dnsenabled', '0'),
|
('system', 'dnsenabled', '0'),
|
||||||
('system', 'dns_server', 'Bind'),
|
('system', 'dns_server', 'Bind'),
|
||||||
@@ -683,7 +683,7 @@ opcache.interned_strings_buffer'),
|
|||||||
('panel', 'customer_hide_options', ''),
|
('panel', 'customer_hide_options', ''),
|
||||||
('panel', 'is_configured', '0'),
|
('panel', 'is_configured', '0'),
|
||||||
('panel', 'version', '0.10.0-rc2'),
|
('panel', 'version', '0.10.0-rc2'),
|
||||||
('panel', 'db_version', '201907270');
|
('panel', 'db_version', '201909150');
|
||||||
|
|
||||||
|
|
||||||
DROP TABLE IF EXISTS `panel_tasks`;
|
DROP TABLE IF EXISTS `panel_tasks`;
|
||||||
|
|||||||
@@ -277,3 +277,38 @@ if (\Froxlor\Froxlor::isDatabaseVersion('201904250')) {
|
|||||||
|
|
||||||
\Froxlor\Froxlor::updateToDbVersion('201907270');
|
\Froxlor\Froxlor::updateToDbVersion('201907270');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (\Froxlor\Froxlor::isDatabaseVersion('201907270')) {
|
||||||
|
|
||||||
|
showUpdateStep("Cleaning up old files");
|
||||||
|
$to_clean = array(
|
||||||
|
"actions/admin/settings/000.version.php",
|
||||||
|
"actions/admin/settings/190.ticket.php",
|
||||||
|
"admin_tickets.php",
|
||||||
|
"customer_tickets.php",
|
||||||
|
"install/scripts/language-check.php",
|
||||||
|
"install/updates/froxlor/upgrade_syscp.inc.php",
|
||||||
|
"lib/classes",
|
||||||
|
"lib/configfiles/precise.xml",
|
||||||
|
"lib/cron_init.php",
|
||||||
|
"lib/cron_shutdown.php",
|
||||||
|
"lib/formfields/admin/tickets",
|
||||||
|
"lib/formfields/customer/tickets",
|
||||||
|
"lib/functions.php",
|
||||||
|
"lib/functions",
|
||||||
|
"lib/navigation/10.tickets.php",
|
||||||
|
"scripts/classes",
|
||||||
|
"scripts/jobs",
|
||||||
|
"templates/Sparkle/admin/tickets",
|
||||||
|
"templates/Sparkle/customer/tickets"
|
||||||
|
);
|
||||||
|
foreach ($to_clean as $filedir) {
|
||||||
|
$complete_filedir = \Froxlor\Froxlor::getInstallDir() . $filedir;
|
||||||
|
if (file_exsts($complete_filedir)) {
|
||||||
|
Froxlor\FileDir::safe_exec("rm -rf " . escapeshellarg($complete_filedir));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
lastStepStatus(0);
|
||||||
|
|
||||||
|
\Froxlor\Froxlor::updateToDbVersion('201909150');
|
||||||
|
}
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ final class Froxlor
|
|||||||
const VERSION = '0.10.0-rc2';
|
const VERSION = '0.10.0-rc2';
|
||||||
|
|
||||||
// Database version (YYYYMMDDC where C is a daily counter)
|
// Database version (YYYYMMDDC where C is a daily counter)
|
||||||
const DBVERSION = '201907270';
|
const DBVERSION = '201909150';
|
||||||
|
|
||||||
// Distribution branding-tag (used for Debian etc.)
|
// Distribution branding-tag (used for Debian etc.)
|
||||||
const BRANDING = '';
|
const BRANDING = '';
|
||||||
|
|||||||
Reference in New Issue
Block a user