]> git.proxmox.com Git - pmg-api.git/commit
do not create /cluster/<cid> unconditionally
authorStoiko Ivanov <s.ivanov@proxmox.com>
Wed, 18 Nov 2020 14:52:54 +0000 (15:52 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 18 Nov 2020 16:01:43 +0000 (17:01 +0100)
commitb42a923daec2869295c0fadc8826edfe4e472442
tree1b98e33caadac727e3772fc89cac4dbbf58269e5
parent4d772625340f5044593c295c0ab3af21b0c50233
do not create /cluster/<cid> unconditionally

while looking through the spooldir creation we noticed the mkdir call
on a relative path. This creates a '/cluster/<cid>/' directory on each system
which has a cluster.conf (<cid> being the node's clusterid). This is not used
since the spooldirs are in '/var/spool/pmg/cluster/'

Simply drop the mkdir call, since the spooldirs get created upon cluster
creation (PMG::API2::Cluster::create) and joining to an existing cluster.

Reported-by: Dominik Csapak <d.csapak@proxmox.com>
Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
src/PMG/MailQueue.pm