]> git.proxmox.com Git - pmg-api.git/commit
pmg-system-report: check for existing sa-awl db
authorStoiko Ivanov <s.ivanov@proxmox.com>
Tue, 26 Feb 2019 14:02:30 +0000 (15:02 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Wed, 27 Feb 2019 05:38:52 +0000 (06:38 +0100)
commit84b19e6d79c1e5db34f951108fe2f8ef75c05636
tree06c1a0ab82d8400249dc3e8225e25142b444d0df
parent2af29ebe8d58a1603f6b727534b56f5a155c35ee
pmg-system-report: check for existing sa-awl db

When run via pmgdaemon the pmg-system-report threw an error, while running
`sa-awl` (it relies on the environment variable HOME being set, for the default
location of the awl database).

This patch checks for the existance of /root/.spamassassin/auto-whitelist and
conditionally runs sa-awl with the file as argument.

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