diff --git a/app/modules/service/haproxy.py b/app/modules/service/haproxy.py index 03678d88..22733809 100644 --- a/app/modules/service/haproxy.py +++ b/app/modules/service/haproxy.py @@ -251,8 +251,7 @@ def show_map(serv: str) -> str: def runtime_command(serv: str, enable: str, backend: str, save: str) -> str: server_state_file = sql.get_setting('server_state_file') haproxy_sock = sql.get_setting('haproxy_sock') - - cmd = f'echo "{enable} {backend}" |sudo socat stdio {haproxy_sock}' + cmd = f"echo {enable} {backend} |sudo socat stdio {haproxy_sock}" if save == "on": save_command = f'echo "show servers state" | sudo socat {haproxy_sock} stdio > {server_state_file}' @@ -260,14 +259,14 @@ def runtime_command(serv: str, enable: str, backend: str, save: str) -> str: else: command = [cmd] - if enable != "show": - roxywi_common.logging(serv, f'Has been {enable}ed {backend}', login=1, keep_history=1, service='haproxy') - print( - f'