small adjustments to install when ssl is activated and gentoo-config-templates
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
@@ -429,7 +429,7 @@ class Core
|
||||
|
||||
// check currently used php version and set values of fpm/fcgid accordingly
|
||||
if (defined('PHP_MAJOR_VERSION') && defined('PHP_MINOR_VERSION')) {
|
||||
// @todo does not work for gentoo
|
||||
// gentoo specific
|
||||
if ($this->validatedData['distribution'] == 'gentoo') {
|
||||
// php-fpm
|
||||
$reload = "/etc/init.d/php-fpm restart";
|
||||
@@ -447,6 +447,11 @@ class Core
|
||||
$db_user->query("UPDATE `" . TABLE_PANEL_PHPCONFIGS . "` SET `binary` = '" . $binary . "';");
|
||||
}
|
||||
|
||||
if ($this->validatedData['use_ssl']) {
|
||||
// enable let's encrypt cron
|
||||
$db_user->query("UPDATE `" . TABLE_PANEL_CRONRUNS . "` SET `isactive` = '1' WHERE `module` = 'froxlor/letsencrypt';");
|
||||
}
|
||||
|
||||
// set specific times for some crons (traffic only at night, etc.)
|
||||
$timestamp = mktime(0, 0, 0, date('m', time()), date('d', time()), date('Y', time()));
|
||||
$db_user->query("UPDATE `" . TABLE_PANEL_CRONRUNS . "` SET `lastrun` = '" . $timestamp . "' WHERE `cronfile` ='cron_traffic';");
|
||||
|
||||
Reference in New Issue
Block a user