add setting for customzing webserver error-log level, fixes #650

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2019-02-12 17:38:46 +01:00
parent d0fb77f3e9
commit 73c05fb231
10 changed files with 44 additions and 4 deletions

View File

@@ -643,6 +643,7 @@ opcache.interned_strings_buffer'),
('system', 'logfiles_piped', '0'),
('system', 'logfiles_script', ''),
('system', 'dhparams_file', ''),
('system', 'errorlog_level', 'warn'),
('api', 'enabled', '0'),
('2fa', 'enabled', '1'),
('panel', 'decimal_places', '4'),
@@ -678,7 +679,7 @@ opcache.interned_strings_buffer'),
('panel', 'customer_hide_options', ''),
('panel', 'is_configured', '0'),
('panel', 'version', '0.10.0'),
('panel', 'db_version', '201812190');
('panel', 'db_version', '201901120');
DROP TABLE IF EXISTS `panel_tasks`;

View File

@@ -493,6 +493,7 @@ class FroxlorInstall
$this->_updateSetting($upd_stmt, '/etc/init.d/nginx reload', 'system', 'apachereload_command');
$this->_updateSetting($upd_stmt, '/etc/nginx/nginx.pem', 'system', 'ssl_cert_file');
$this->_updateSetting($upd_stmt, '/var/run/', 'phpfpm', 'fastcgi_ipcdir');
$this->_updateSetting($upd_stmt, 'error', 'system', 'errorlog_level');
}
$this->_updateSetting($upd_stmt, $this->_data['activate_newsfeed'], 'admin', 'show_news_feed');

View File

@@ -187,3 +187,12 @@ if (\Froxlor\Froxlor::isDatabaseVersion('201812180')) {
\Froxlor\Froxlor::updateToDbVersion('201812190');
}
if (\Froxlor\Froxlor::isDatabaseVersion('201812190')) {
showUpdateStep("Adding new webserver error-log-level setting");
Settings::AddNew('system.errorlog_level', (\Froxlor\Settings::Get('system.webserver') == 'nginx' ? 'error' : 'warn'));
lastStepStatus(0);
\Froxlor\Froxlor::updateToDbVersion('201901120');
}