mirror of https://github.com/Aidaho12/haproxy-wi
parent
01d74ac0d4
commit
b05828536a
|
@ -930,7 +930,7 @@ def upload_and_restart(server_ip, cfg, **kwargs):
|
|||
if haproxy_enterprise == '1':
|
||||
haproxy_service_name = "hapee-2.0-lb"
|
||||
|
||||
check_config = "sudo " + haproxy_service_name + " haproxy -q -c -f " + tmp_file
|
||||
check_config = "sudo " + haproxy_service_name + " -q -c -f " + tmp_file
|
||||
move_config = " && sudo mv -f " + tmp_file + " " + config_path
|
||||
|
||||
if action == "test":
|
||||
|
|
|
@ -7,6 +7,7 @@ env = Environment(loader=FileSystemLoader('templates/'), autoescape=True)
|
|||
template = env.get_template('metrics.html')
|
||||
form = funct.form
|
||||
service = form.getvalue('service')
|
||||
title = 'Metrics service'
|
||||
|
||||
funct.check_login()
|
||||
print('Content-type: text/html\n')
|
||||
|
@ -23,7 +24,6 @@ try:
|
|||
if not stderr:
|
||||
if service_ver[0] == '* is not installed' or service_ver == '':
|
||||
servers = ''
|
||||
title = 'Metrics service'
|
||||
else:
|
||||
if service == 'nginx':
|
||||
if funct.check_login(service=2):
|
||||
|
|
Loading…
Reference in New Issue