https://haproxy-wi.org/changelog.py#4_2_1
This commit is contained in:
Pavel Loginov
2020-04-03 22:51:50 +02:00
parent e0424af2e7
commit 8c9b471363
6 changed files with 27 additions and 10 deletions

View File

@@ -1,4 +1,4 @@
# -*- coding: utf-8 -*-"
# -*- coding: utf-8 -*-
import cgi
import os, sys
@@ -455,8 +455,8 @@ def waf_install(serv, **kwargs):
os.system("rm -f %s" % script)
stderr = ssh_command(serv, commands, print_out="1")
if stderr is None:
sql.insert_waf_metrics_enable(serv, "0")
sql.insert_waf_metrics_enable(serv, "0")
def install_nginx(serv):
@@ -960,4 +960,11 @@ def check_group(group, role_id):
return True
else:
logging('localhost', ' has tried to actions in not own group ', haproxywi=1, login=1)
return False
return False
def check_service(serv, service_name):
commands = [ "systemctl status "+service_name+" |grep Active |awk '{print $1}'" ]
return ssh_command(serv, commands)