]> git.proxmox.com Git - pmg-api.git/commit
add /etc/pmg/dkim to cluster-sync
authorStoiko Ivanov <s.ivanov@proxmox.com>
Mon, 21 Oct 2019 17:23:34 +0000 (19:23 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Wed, 23 Oct 2019 09:47:16 +0000 (11:47 +0200)
commit06cebf83a650f198b22c37af25083e3c79ef68e2
treef1617811d94ca00797558ac62ff830619f582085
parent19fe518454fe388470c44cdd43080a420c755f73
add /etc/pmg/dkim to cluster-sync

The clustersync already uses rsync to sync most files (there are excludes
for '*.db', '*~', and the certificates of the node) from the master's
'/etc/pmg' directory to all nodes. Moving files from the syncdir to the node's
actual '/etc/pmg' happen only for explicitly listed files.

This patch adds a second list of explicit directories and adds
'/etc/pmg/templates' and '/etc/pmg/dkim' to that list.

The syncing of all files inside this directory list is done via
`rsync -aq --delete-after`. This is a semantic change to the loop used
for the templates directory, in which only regular files and symlinks were
copied (rsync copies everything recursively).

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