From 6904acc9ea5e545f2cb320fd2cc44f65fd9419eb Mon Sep 17 00:00:00 2001 From: Michael Kaufmann Date: Sun, 13 Nov 2022 15:09:16 +0100 Subject: [PATCH] use preinstalled dh params file instead of generating a new one which takes a lot of time Signed-off-by: Michael Kaufmann --- lib/Froxlor/Install/Install/Core.php | 2 -- lib/configfiles/bionic.xml | 3 +-- lib/configfiles/bookworm.xml | 3 +-- lib/configfiles/bullseye.xml | 3 +-- lib/configfiles/buster.xml | 3 +-- lib/configfiles/focal.xml | 3 +-- lib/configfiles/gentoo.xml | 4 ++-- lib/configfiles/jammy.xml | 3 +-- 8 files changed, 8 insertions(+), 16 deletions(-) diff --git a/lib/Froxlor/Install/Install/Core.php b/lib/Froxlor/Install/Install/Core.php index 95cd118f..0efe7dd5 100644 --- a/lib/Froxlor/Install/Install/Core.php +++ b/lib/Froxlor/Install/Install/Core.php @@ -393,10 +393,8 @@ class Core $this->updateSetting($upd_stmt, 'apache2', 'system', 'webserver'); $this->updateSetting($upd_stmt, '1', 'system', 'apache24'); } elseif ($this->validatedData['webserver'] == "lighttpd") { - $this->updateSetting($upd_stmt, '/etc/lighttpd/lighttpd.pem', 'system', 'ssl_cert_file'); $this->updateSetting($upd_stmt, '/var/run/lighttpd/', 'phpfpm', 'fastcgi_ipcdir'); } elseif ($this->validatedData['webserver'] == "nginx") { - $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'); } diff --git a/lib/configfiles/bionic.xml b/lib/configfiles/bionic.xml index 68fa23c6..19c0a869 100644 --- a/lib/configfiles/bionic.xml +++ b/lib/configfiles/bionic.xml @@ -3462,7 +3462,7 @@ ssl_key = < # Generate new params with `openssl dhparam -out /etc/dovecot/dh.pem 4096` # Or migrate from old ssl-parameters.dat file with the command dovecot # gives on startup when ssl_dh is unset. -ssl_dh = - diff --git a/lib/configfiles/bookworm.xml b/lib/configfiles/bookworm.xml index dbfe2413..2d9a9ef6 100644 --- a/lib/configfiles/bookworm.xml +++ b/lib/configfiles/bookworm.xml @@ -2522,7 +2522,7 @@ service stats { ssl = yes ssl_cert = < ssl_key = < -ssl_dh = @@ -2545,7 +2545,6 @@ plugin { - diff --git a/lib/configfiles/bullseye.xml b/lib/configfiles/bullseye.xml index bd293819..4078251d 100644 --- a/lib/configfiles/bullseye.xml +++ b/lib/configfiles/bullseye.xml @@ -3500,7 +3500,7 @@ ssl_client_ca_dir = /etc/ssl/certs # Generate new params with `openssl dhparam -out /etc/dovecot/dh.pem 4096` # Or migrate from old ssl-parameters.dat file with the command dovecot # gives on startup when ssl_dh is unset. -ssl_dh = - diff --git a/lib/configfiles/buster.xml b/lib/configfiles/buster.xml index f7aaa3a2..9360124b 100644 --- a/lib/configfiles/buster.xml +++ b/lib/configfiles/buster.xml @@ -3496,7 +3496,7 @@ ssl_client_ca_dir = /etc/ssl/certs # Generate new params with `openssl dhparam -out /etc/dovecot/dh.pem 4096` # Or migrate from old ssl-parameters.dat file with the command dovecot # gives on startup when ssl_dh is unset. -ssl_dh = - diff --git a/lib/configfiles/focal.xml b/lib/configfiles/focal.xml index d18ba959..45d4158c 100644 --- a/lib/configfiles/focal.xml +++ b/lib/configfiles/focal.xml @@ -2878,7 +2878,7 @@ ssl_key = < # Generate new params with `openssl dhparam -out /etc/dovecot/dh.pem 4096` # Or migrate from old ssl-parameters.dat file with the command dovecot # gives on startup when ssl_dh is unset. -ssl_dh = - diff --git a/lib/configfiles/gentoo.xml b/lib/configfiles/gentoo.xml index 6dcc5259..240ecfaa 100644 --- a/lib/configfiles/gentoo.xml +++ b/lib/configfiles/gentoo.xml @@ -1986,7 +1986,7 @@ sql_select: SELECT password_enc FROM mail_users WHERE username='%u@%r' OR email= - > /etc/portage/package.use/froxlor]]> + > /etc/portage/package.use/froxlor]]> @@ -2341,7 +2341,7 @@ plugin { ]]> - + diff --git a/lib/configfiles/jammy.xml b/lib/configfiles/jammy.xml index 5d86a3a5..7b8c69d8 100644 --- a/lib/configfiles/jammy.xml +++ b/lib/configfiles/jammy.xml @@ -2878,7 +2878,7 @@ ssl_key = < # Generate new params with `openssl dhparam -out /etc/dovecot/dh.pem 4096` # Or migrate from old ssl-parameters.dat file with the command dovecot # gives on startup when ssl_dh is unset. -ssl_dh = -