diff --git a/install/froxlor.sql.php b/install/froxlor.sql.php index 7483db77..711e821d 100644 --- a/install/froxlor.sql.php +++ b/install/froxlor.sql.php @@ -23,7 +23,7 @@ * @license https://files.froxlor.org/misc/COPYING.txt GPLv2 */ -return <<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';"); diff --git a/lib/configfiles/gentoo.xml b/lib/configfiles/gentoo.xml index ddcfb20e..ba22c593 100644 --- a/lib/configfiles/gentoo.xml +++ b/lib/configfiles/gentoo.xml @@ -65,43 +65,8 @@ - - - //service[@type='http']/general/commands - - {{settings.phpfpm.enabled}} - - - FastCgiIpcDir - - - Order Deny,Allow - Deny from All - # Prevent accessing this path directly - Allow from env=REDIRECT_STATUS - - -]]> - - - - {{settings.system.leenabled}} - - - Order allow,deny - Allow from all - -]]> - - - - - + //service[@type='http']/general/commands {{settings.phpfpm.enabled}} @@ -3864,6 +3829,11 @@ aliases: files > /etc/portage/package.use/froxlor]]> + + {{settings.system.mod_fcgid}} + + > /etc/portage/package.use/froxlor]]> + {{settings.system.webserver}} @@ -3904,7 +3874,12 @@ aliases: files {{settings.system.webserver}} - + + + + {{settings.phpfpm.enabled}} + + > /etc/portage/package.use/froxlor]]> {{settings.system.webserver}}