Browse Source

v2.2

pull/19/head
Aidaho12 7 years ago
parent
commit
aee6b8b640
  1. 4
      cgi-bin/funct.py

4
cgi-bin/funct.py

@ -318,8 +318,8 @@ def ssh_connect(serv):
def get_config(serv, cfg, **kwargs):
if kwargs.get("keepalived"):
os.chdir("/var/www/haproxy-wi/cgi-bin/kp_config/")
config_path = config.get('configs', 'kp_save_configs_dir')
os.chdir(config.get('configs', 'kp_save_configs_dir'))
config_path = "/etc/keepalived/keepalived.conf"
else:
os.chdir(hap_configs_dir)
config_path = haproxy_config_path

Loading…
Cancel
Save