]> git.proxmox.com Git - pmg-api.git/commit
fix #2172: sort mynetworks template var to make postfix config rewrite stable
authorStoiko Ivanov <s.ivanov@proxmox.com>
Thu, 11 Apr 2019 16:48:57 +0000 (18:48 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 12 Apr 2019 07:47:26 +0000 (09:47 +0200)
commitb8733ec1f350baae608ca13af0804f87c65dae5c
treeb642cb7de23e00f2eb9ec6ae7dceae995f87e0dd
parent2473cb81ec3085bcd4c2f21be12a2c905f44cd21
fix #2172: sort mynetworks template var to make postfix config rewrite stable

The mynetworks template_var is written to postfix/main.cf, causing a
postfix restart on every change. Since mynetworks is a hash the order
of the networks potentially changes with every invocation. This shows
quite readily in clustered setups where pmgmirror writes the configs
and checks for changes once every 2 minutes.

fixes #2172

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
PMG/Config.pm