Ability to add custom config to PHPFPM version

Addresses #643

Signed-off-by: Patrik Kernstock <patrik@kernstock.net>
This commit is contained in:
Patrik Kernstock
2019-12-31 05:48:36 +01:00
parent 1e0510a43d
commit c61b3b73bd
10 changed files with 197 additions and 3 deletions

View File

@@ -523,3 +523,10 @@ if (\Froxlor\Froxlor::isFroxlorVersion('0.10.9')) {
showUpdateStep("Updating from 0.10.9 to 0.10.10", false);
\Froxlor\Froxlor::updateToVersion('0.10.10');
}
if (\Froxlor\Froxlor::isDatabaseVersion('201912100')) {
showUpdateStep("Adding custom phpfpm configuration field");
Database::query("ALTER TABLE `" . TABLE_PANEL_PHPDAEMONS . "` ADD `custom_config` text NOT NULL DEFAULT '' AFTER `limit_extensions`;");
lastStepStatus(0);
\Froxlor\Froxlor::updateToDbVersion('201912310');
}