]> git.proxmox.com Git - pmg-api.git/commit
move postgres_admin_command into PMG::Utils
authorStoiko Ivanov <s.ivanov@proxmox.com>
Thu, 8 Aug 2019 13:36:09 +0000 (15:36 +0200)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Fri, 9 Aug 2019 06:45:05 +0000 (08:45 +0200)
commit6529020a8cd75dc7c0b2f852cdb7c6414c5bf039
treebb7ba83c6ae1588120f7204ab7bc6ce03f9e73dd
parentccb2fa1a867f2b417d165bc3fa37fe72c6587fad
move postgres_admin_command into PMG::Utils

Take postgres_admin_command from PMG::DBTools and put it in PMG::Utils.
This avoids a cyclic dependency (PMG::DBTools calls
PMG::Config::rewrite_postfix_whitelist when reloading the RuleDB, and
PMG::Config needs access to the Postgres major version for rendering
the postgresql.conf)

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