mirror of https://github.com/Aidaho12/haproxy-wi
v2.2
parent
aafd430cb2
commit
aee6b8b640
|
@ -318,8 +318,8 @@ def ssh_connect(serv):
|
||||||
|
|
||||||
def get_config(serv, cfg, **kwargs):
|
def get_config(serv, cfg, **kwargs):
|
||||||
if kwargs.get("keepalived"):
|
if kwargs.get("keepalived"):
|
||||||
os.chdir("/var/www/haproxy-wi/cgi-bin/kp_config/")
|
os.chdir(config.get('configs', 'kp_save_configs_dir'))
|
||||||
config_path = config.get('configs', 'kp_save_configs_dir')
|
config_path = "/etc/keepalived/keepalived.conf"
|
||||||
else:
|
else:
|
||||||
os.chdir(hap_configs_dir)
|
os.chdir(hap_configs_dir)
|
||||||
config_path = haproxy_config_path
|
config_path = haproxy_config_path
|
||||||
|
|
Loading…
Reference in New Issue