]> git.proxmox.com Git - pve-http-server.git/commit
move read_proxy_conf from PVE::API2Tools to new Utils module
authorStoiko Ivanov <s.ivanov@proxmox.com>
Fri, 22 Feb 2019 18:51:59 +0000 (19:51 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 26 Feb 2019 06:05:12 +0000 (07:05 +0100)
commitc610c8597c726a428cb2ec0fc584070c1e1614e9
treeb2eb8472f3cac7cd3ed4653ff600f267dcf2c1b7
parentfac83ab296f0c6050cc19a847df9113aa4c20ee8
move read_proxy_conf from PVE::API2Tools to new Utils module

move the read_proxy_conf method into a new perl module
'PVE::APIServer::Utils'.
It now takes the proxy_name (e.g. pveproxy, pmgproxy) as variable to be used
for the configfile location (/etc/default/$proxy_name)

This serves as preparation to make pmgproxy configurable in the same way as
pveproxy.

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Makefile
PVE/APIServer/AnyEvent.pm [changed mode: 0755->0644]
PVE/APIServer/Utils.pm [new file with mode: 0644]