all lists on lists.proxmox.com
 help / color / mirror / Atom feed
* [PATCH pmg-api] fix missing postfix welcomelist update
@ 2026-06-10  7:39 Dominik Csapak
  2026-06-10  9:00 ` applied: " Stoiko Ivanov
  0 siblings, 1 reply; 2+ messages in thread
From: Dominik Csapak @ 2026-06-10  7:39 UTC (permalink / raw)
  To: pmg-devel

Similar fix as
 17f17bc (config: do not shortcircuit smtp-welcomelist generation)

If `$changes` is already true, 'rewrite_postfix_welcomelist' will never
called.

This prevented those file generation on first boot after a fresh
install.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
---
I tested the previous fix only after rebooting the machine, not on a new
installation so I missed this.

This time I installed fresh (in debug mode) and injected the changes
into the file after the installation finished, but before a reboot and
it worked now. Sorry, I could have caught this the first time around...

 src/PMG/Config.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/PMG/Config.pm b/src/PMG/Config.pm
index f48c31d..9b22b67 100644
--- a/src/PMG/Config.pm
+++ b/src/PMG/Config.pm
@@ -1916,7 +1916,7 @@ sub rewrite_config_postfix {
     postmap_tls_policy();
     postmap_tls_inbound_domains();
 
-    $changes ||= rewrite_postfix_welcomelist($rulecache) if $rulecache;
+    $changes = 1 if $rulecache && rewrite_postfix_welcomelist($rulecache);
 
     # make sure aliases.db is up to date
     system('/usr/bin/newaliases');
-- 
2.47.3





^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-06-10  9:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-10  7:39 [PATCH pmg-api] fix missing postfix welcomelist update Dominik Csapak
2026-06-10  9:00 ` applied: " Stoiko Ivanov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal