pull/19/head
Aidaho12 2018-04-28 14:19:00 +06:00
parent aafd430cb2
commit aee6b8b640
1 changed files with 2 additions and 2 deletions

View File

@ -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