From 83b7c31bb5f85cabc18536131400161cd4c1f632 Mon Sep 17 00:00:00 2001 From: Pavel Loginov Date: Sun, 14 Mar 2021 01:13:13 +0600 Subject: [PATCH] v5.0.1.0 Changelog: https://haproxy-wi.org/changelog.py#5_0_1 --- app/funct.py | 4 +--- app/options.py | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/app/funct.py b/app/funct.py index 08538a28..b90299a6 100644 --- a/app/funct.py +++ b/app/funct.py @@ -495,8 +495,6 @@ def show_installation_output(error, output, service): for l in output: if "Traceback" in l or "FAILED" in l: try: - l = l.split(':')[1] - l = l.split('"')[1] print(l) break except Exception: @@ -530,7 +528,7 @@ def install_haproxy(serv, **kwargs): os.system("cp scripts/%s ." % script) if hapver is None: - hapver = '2.0.7-1' + hapver = '2.3.0-1' if proxy is not None and proxy != '' and proxy != 'None': proxy_serv = proxy diff --git a/app/options.py b/app/options.py index e2fe511f..0a854422 100644 --- a/app/options.py +++ b/app/options.py @@ -33,7 +33,7 @@ if form.getvalue('alert_consumer') is None: if form.getvalue('getcerts') is not None and serv is not None: cert_path = sql.get_setting('cert_path') - commands = ["ls -1t " + cert_path + " |grep -E 'pem|crt|key'"] + commands = ["sudo ls -1t " + cert_path + " |grep -E 'pem|crt|key'"] try: funct.ssh_command(serv, commands, ip="1") except Exception as e: