diff --git a/lib/Froxlor/Cli/Action/PhpSessioncleanAction.php b/lib/Froxlor/Cli/Action/PhpSessioncleanAction.php
index 9ad09a15..ee93883b 100644
--- a/lib/Froxlor/Cli/Action/PhpSessioncleanAction.php
+++ b/lib/Froxlor/Cli/Action/PhpSessioncleanAction.php
@@ -4,7 +4,6 @@ namespace Froxlor\Cli\Action;
use Froxlor\Database\Database;
use Froxlor\Settings;
-use Froxlor\Cli\PhpSessioncleanCmd;
class PhpSessioncleanAction extends \Froxlor\Cli\Action
{
diff --git a/lib/Froxlor/Cron/CronConfig.php b/lib/Froxlor/Cron/CronConfig.php
index 774c5f51..83a954db 100644
--- a/lib/Froxlor/Cron/CronConfig.php
+++ b/lib/Froxlor/Cron/CronConfig.php
@@ -106,6 +106,12 @@ class CronConfig
}
}
+ // php sessionclean if enabled
+ if ((int) Settings::Get('phpfpm.enabled') == 1) {
+ $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;
+ }
+
if (\Froxlor\FileDir::isFreeBSD()) {
// FreeBSD handles the cron-stuff in another way. We need to directly
// write to the crontab file as there is not cron.d/froxlor file
diff --git a/lng/german.lng.php b/lng/german.lng.php
index 4f267204..bb5a380b 100644
--- a/lng/german.lng.php
+++ b/lng/german.lng.php
@@ -1481,9 +1481,9 @@ $lng['admin']['mod_fcgid_umask']['title'] = 'Umask (Standard: 022)';
// Added for let's encrypt
$lng['admin']['letsencrypt']['title'] = 'SSL Zertifikat erstellen (Let\'s Encrypt)';
-$lng['admin']['letsencrypt']['description'] = 'Holt ein kostenloses Zertifikat von Let\'s Encrypt. Das Zertifikat wird automatisch erstellt und verlängert.
ACHTUNG: Wenn Wildcards aktiviert sind, wird diese Option automatisch deaktiviert. Dieses Feature befindet sich noch im Test.';
+$lng['admin']['letsencrypt']['description'] = 'Holt ein kostenloses Zertifikat von Let\'s Encrypt. Das Zertifikat wird automatisch erstellt und verlängert.
ACHTUNG: Wenn Wildcards aktiviert sind, wird diese Option automatisch deaktiviert.';
$lng['customer']['letsencrypt']['title'] = 'SSL Zertifikat erstellen (Let\'s Encrypt)';
-$lng['customer']['letsencrypt']['description'] = 'Holt ein kostenloses Zertifikat von Let\'s Encrypt. Das Zertifikat wird automatisch erstellt und verlängert.
ACHTUNG: Dieses Feature befindet sich noch im Test.';
+$lng['customer']['letsencrypt']['description'] = 'Holt ein kostenloses Zertifikat von Let\'s Encrypt. Das Zertifikat wird automatisch erstellt und verlängert.';
$lng['error']['sslredirectonlypossiblewithsslipport'] = 'Die Nutzung von Let\'s Encrypt ist nur möglich, wenn die Domain mindestens eine IP/Port - Kombination mit aktiviertem SSL zugewiesen hat.';
$lng['error']['nowildcardwithletsencrypt'] = 'Let\'s Encrypt kann mittels ACME Wildcard-Domains nur via DNS validieren, sorry. Bitte den ServerAlias auf WWW setzen oder deaktivieren';
$lng['panel']['letsencrypt'] = 'Benutzt Let\'s encrypt';
diff --git a/install/scripts/php-sessionclean.php b/scripts/php-sessionclean.php
similarity index 93%
rename from install/scripts/php-sessionclean.php
rename to scripts/php-sessionclean.php
index 41f633db..c97c2aed 100755
--- a/install/scripts/php-sessionclean.php
+++ b/scripts/php-sessionclean.php
@@ -21,7 +21,7 @@ if (@php_sapi_name() !== 'cli') {
die('This script will only work in the shell.');
}
-require dirname(dirname(__DIR__)) . '/vendor/autoload.php';
+require dirname(__DIR__) . '/vendor/autoload.php';
// give control to command line handler
try {