mirror of https://github.com/Aidaho12/haproxy-wi
server's state saving fix
Current save_command trying to write socket file into state file (not stdout) and it can't be passed over ssh as list.pull/227/head
parent
2ea59c892a
commit
decc302c12
|
@ -603,8 +603,8 @@ if form.getvalue('servaction') is not None:
|
|||
cmd='echo "%s %s" |sudo socat stdio %s | cut -d "," -f 1-2,5-10,18,34-36 | column -s, -t' % (enable, backend, haproxy_sock)
|
||||
|
||||
if form.getvalue('save') == "on":
|
||||
save_command = 'echo "show servers state" | sudo socat stdio %s > %s' % (haproxy_sock, server_state_file)
|
||||
command = [ cmd, save_command ]
|
||||
save_command = 'echo "show servers state" | sudo socat %s stdio > %s' % (haproxy_sock, server_state_file)
|
||||
command = [ cmd + ';' + save_command ]
|
||||
else:
|
||||
command = [ cmd ]
|
||||
|
||||
|
|
Loading…
Reference in New Issue