allow hiding documentation menu for customers via customers-hide-option; use --staging for acme.sh for every test-CA

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2023-01-18 08:59:59 +01:00
parent 6cbdf45a7c
commit c56bc651b9
4 changed files with 11 additions and 3 deletions

View File

@@ -557,7 +557,7 @@ EOC;
if (Settings::Get('system.letsencryptreuseold') != '1') {
$acmesh_cmd .= " --always-force-new-domain-key";
}
if (Settings::Get('system.letsencryptca') == 'letsencrypt_test') {
if (substr(Settings::Get('system.letsencryptca'), -5) == '_test') {
$acmesh_cmd .= " --staging";
}
if ($force) {