Fix Auto-SSL config injection appending garbage to acmeEmail line

The string replace matched only 'adminEmails' keyword instead of the
full existing line 'adminEmails               root@localhost', causing
the remaining '               root@localhost' to trail onto the acmeEmail
line and break ACME account registration.
This commit is contained in:
usmannasir
2026-02-14 00:16:34 +05:00
parent 5e304f9481
commit cedbbd27e8
2 changed files with 2 additions and 2 deletions

View File

@@ -507,7 +507,7 @@ module cyberpanel_ols {
content = f.read()
if 'autoSSL' not in content:
content = content.replace(
'adminEmails',
'adminEmails root@localhost',
'adminEmails root@localhost\nautoSSL 1\nacmeEmail admin@cyberpanel.net',
1
)

View File

@@ -4602,7 +4602,7 @@ pm.max_spare_servers = 3
content = f.read()
if 'autoSSL' not in content:
content = content.replace(
'adminEmails',
'adminEmails root@localhost',
'adminEmails root@localhost\nautoSSL 1\nacmeEmail admin@cyberpanel.net',
1
)