Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
989b4fee0e | ||
|
|
7f6810c5bd | ||
|
|
3fbc9815ea | ||
|
|
11533c2d75 | ||
|
|
652a998188 |
@@ -723,7 +723,7 @@ opcache.validate_timestamps'),
|
|||||||
('panel', 'logo_image_login', ''),
|
('panel', 'logo_image_login', ''),
|
||||||
('panel', 'logo_overridetheme', '0'),
|
('panel', 'logo_overridetheme', '0'),
|
||||||
('panel', 'logo_overridecustom', '0'),
|
('panel', 'logo_overridecustom', '0'),
|
||||||
('panel', 'version', '0.10.34'),
|
('panel', 'version', '0.10.34.1'),
|
||||||
('panel', 'db_version', '202112310');
|
('panel', 'db_version', '202112310');
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -28,5 +28,5 @@ try {
|
|||||||
\Froxlor\Cli\ConfigServicesCmd::processParameters($argc, $argv);
|
\Froxlor\Cli\ConfigServicesCmd::processParameters($argc, $argv);
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
\Froxlor\Cli\ConfigServicesCmd::printerr($e->getMessage());
|
\Froxlor\Cli\ConfigServicesCmd::printerr($e->getMessage());
|
||||||
exit 1;
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -28,5 +28,5 @@ try {
|
|||||||
\Froxlor\Cli\SwitchServerIpCmd::processParameters($argc, $argv);
|
\Froxlor\Cli\SwitchServerIpCmd::processParameters($argc, $argv);
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
\Froxlor\Cli\SwitchServerIpCmd::printerr($e->getMessage());
|
\Froxlor\Cli\SwitchServerIpCmd::printerr($e->getMessage());
|
||||||
exit 1;
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -975,3 +975,8 @@ if (\Froxlor\Froxlor::isFroxlorVersion('0.10.33')) {
|
|||||||
showUpdateStep("Updating from 0.10.33 to 0.10.34", false);
|
showUpdateStep("Updating from 0.10.33 to 0.10.34", false);
|
||||||
\Froxlor\Froxlor::updateToVersion('0.10.34');
|
\Froxlor\Froxlor::updateToVersion('0.10.34');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (\Froxlor\Froxlor::isFroxlorVersion('0.10.34')) {
|
||||||
|
showUpdateStep("Updating from 0.10.34 to 0.10.34.1", false);
|
||||||
|
\Froxlor\Froxlor::updateToVersion('0.10.34.1');
|
||||||
|
}
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Froxlor\Cron;
|
namespace Froxlor\Cron;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -18,6 +19,7 @@ namespace Froxlor\Cron;
|
|||||||
* @since 0.10.0
|
* @since 0.10.0
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
use Froxlor\Database\Database;
|
use Froxlor\Database\Database;
|
||||||
use Froxlor\Settings;
|
use Froxlor\Settings;
|
||||||
|
|
||||||
@@ -56,6 +58,12 @@ class CronConfig
|
|||||||
SELECT * FROM `" . TABLE_PANEL_CRONRUNS . "` WHERE `isactive` = '1'
|
SELECT * FROM `" . TABLE_PANEL_CRONRUNS . "` WHERE `isactive` = '1'
|
||||||
");
|
");
|
||||||
|
|
||||||
|
$binpath = Settings::Get("system.croncmdline");
|
||||||
|
// fallback as it is important
|
||||||
|
if ($binpath === null) {
|
||||||
|
$binpath = "/usr/bin/nice -n 5 /usr/bin/php -q";
|
||||||
|
}
|
||||||
|
|
||||||
$hour_delay = 0;
|
$hour_delay = 0;
|
||||||
$day_delay = 5;
|
$day_delay = 5;
|
||||||
$month_delay = 7;
|
$month_delay = 7;
|
||||||
@@ -96,20 +104,14 @@ class CronConfig
|
|||||||
}
|
}
|
||||||
|
|
||||||
// create entry-line
|
// create entry-line
|
||||||
$binpath = Settings::Get("system.croncmdline");
|
|
||||||
// fallback as it is important
|
|
||||||
if ($binpath === null) {
|
|
||||||
$binpath = "/usr/bin/nice -n 5 /usr/bin/php -q";
|
|
||||||
}
|
|
||||||
|
|
||||||
$cronfile .= "root " . $binpath . " " . \Froxlor\FileDir::makeCorrectFile(\Froxlor\Froxlor::getInstallDir() . "/scripts/froxlor_master_cronjob.php") . " --" . $row_cronentry['cronfile'] . " 1> /dev/null\n";
|
$cronfile .= "root " . $binpath . " " . \Froxlor\FileDir::makeCorrectFile(\Froxlor\Froxlor::getInstallDir() . "/scripts/froxlor_master_cronjob.php") . " --" . $row_cronentry['cronfile'] . " 1> /dev/null\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// php sessionclean if enabled
|
// php sessionclean if enabled
|
||||||
if ((int) Settings::Get('phpfpm.enabled') == 1) {
|
if ((int) Settings::Get('phpfpm.enabled') == 1) {
|
||||||
$cronfile .= "# Look for and purge old sessions every 30 minutes".PHP_EOL;
|
$cronfile .= "# Look for and purge old sessions every 30 minutes" . PHP_EOL;
|
||||||
$cronfile .= "09,39 * * * * root " . \Froxlor\FileDir::makeCorrectFile(\Froxlor\Froxlor::getInstallDir() . "/scripts/php-sessionclean.php") . " --froxlor-dir=" . escapeshellarg(\Froxlor\Froxlor::getInstallDir()) . " 1> /dev/null" . PHP_EOL;
|
$cronfile .= "09,39 * * * * root " . $binpath . " " . \Froxlor\FileDir::makeCorrectFile(\Froxlor\Froxlor::getInstallDir() . "/scripts/php-sessionclean.php") . " --froxlor-dir=" . escapeshellarg(\Froxlor\Froxlor::getInstallDir()) . " 1> /dev/null" . PHP_EOL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (\Froxlor\FileDir::isFreeBSD()) {
|
if (\Froxlor\FileDir::isFreeBSD()) {
|
||||||
@@ -127,7 +129,7 @@ class CronConfig
|
|||||||
$newcrontab = "";
|
$newcrontab = "";
|
||||||
foreach ($crontablines as $ctl) {
|
foreach ($crontablines as $ctl) {
|
||||||
$ctl = trim($ctl);
|
$ctl = trim($ctl);
|
||||||
if (! empty($ctl) && ! preg_match("/(.*)froxlor_master_cronjob\.php(.*)/", $ctl)) {
|
if (!empty($ctl) && !preg_match("/(.*)froxlor_master_cronjob\.php(.*)/", $ctl)) {
|
||||||
$newcrontab .= $ctl . "\n";
|
$newcrontab .= $ctl . "\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -773,20 +773,28 @@ class Apache extends HttpConfigBase
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (Settings::Get('system.logfiles_piped') == '1' && Settings::Get('system.logfiles_script') != '') {
|
if (Settings::Get('system.logfiles_piped') == '1' && Settings::Get('system.logfiles_script') != '') {
|
||||||
// replace for error_log
|
if ($domain['writeerrorlog']) {
|
||||||
$command = \Froxlor\PhpHelper::replaceVariables(Settings::Get('system.logfiles_script'), array(
|
// replace for error_log
|
||||||
'LOGFILE' => $error_log,
|
$command = \Froxlor\PhpHelper::replaceVariables(Settings::Get('system.logfiles_script'), array(
|
||||||
'DOMAIN' => $domain['domain'],
|
'LOGFILE' => $error_log,
|
||||||
'CUSTOMER' => $domain['loginname']
|
'DOMAIN' => $domain['domain'],
|
||||||
));
|
'CUSTOMER' => $domain['loginname']
|
||||||
$logfiles_text .= ' ErrorLog "|' . $command . "\"\n";
|
));
|
||||||
// replace for access_log
|
$logfiles_text .= ' ErrorLog "|' . $command . "\"\n";
|
||||||
$command = \Froxlor\PhpHelper::replaceVariables(Settings::Get('system.logfiles_script'), array(
|
} else {
|
||||||
'LOGFILE' => $access_log,
|
$logfiles_text .= ' ErrorLog "' . $error_log . '"' . "\n";
|
||||||
'DOMAIN' => $domain['domain'],
|
}
|
||||||
'CUSTOMER' => $domain['loginname']
|
if ($domain['writeaccesslog']) {
|
||||||
));
|
// replace for access_log
|
||||||
$logfiles_text .= ' CustomLog "|' . $command . '" ' . $logtype . "\n";
|
$command = \Froxlor\PhpHelper::replaceVariables(Settings::Get('system.logfiles_script'), array(
|
||||||
|
'LOGFILE' => $access_log,
|
||||||
|
'DOMAIN' => $domain['domain'],
|
||||||
|
'CUSTOMER' => $domain['loginname']
|
||||||
|
));
|
||||||
|
$logfiles_text .= ' CustomLog "|' . $command . '" ' . $logtype . "\n";
|
||||||
|
} else {
|
||||||
|
$logfiles_text .= ' CustomLog "' . $access_log . '" ' . $logtype . "\n";
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
$logfiles_text .= ' ErrorLog "' . $error_log . '"' . "\n";
|
$logfiles_text .= ' ErrorLog "' . $error_log . '"' . "\n";
|
||||||
$logfiles_text .= ' CustomLog "' . $access_log . '" ' . $logtype . "\n";
|
$logfiles_text .= ' CustomLog "' . $access_log . '" ' . $logtype . "\n";
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ final class Froxlor
|
|||||||
{
|
{
|
||||||
|
|
||||||
// Main version variable
|
// Main version variable
|
||||||
const VERSION = '0.10.34';
|
const VERSION = '0.10.34.1';
|
||||||
|
|
||||||
// Database version (YYYYMMDDC where C is a daily counter)
|
// Database version (YYYYMMDDC where C is a daily counter)
|
||||||
const DBVERSION = '202112310';
|
const DBVERSION = '202112310';
|
||||||
|
|||||||
@@ -28,4 +28,5 @@ try {
|
|||||||
\Froxlor\Cli\PhpSessioncleanCmd::processParameters($argc, $argv);
|
\Froxlor\Cli\PhpSessioncleanCmd::processParameters($argc, $argv);
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
\Froxlor\Cli\PhpSessioncleanCmd::printerr($e->getMessage());
|
\Froxlor\Cli\PhpSessioncleanCmd::printerr($e->getMessage());
|
||||||
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user