diff --git a/app/funct.py b/app/funct.py index d364779..b1dbff8 100644 --- a/app/funct.py +++ b/app/funct.py @@ -279,7 +279,7 @@ def upload_and_restart(serv, cfg, **kwargs): for command in commands: stdin, stdout, stderr = ssh.exec_command(command) - return stderr.read().decode(encoding='UTF-8'), error + return stderr.read().decode(encoding='UTF-8') ssh.close() def open_port_firewalld(cfg): diff --git a/app/templates/base.html b/app/templates/base.html index 823dc57..fd4845d 100644 --- a/app/templates/base.html +++ b/app/templates/base.html @@ -33,7 +33,7 @@
HAproxy-WI - + diff --git a/app/templates/config.html b/app/templates/config.html index a735c83..ab17e19 100644 --- a/app/templates/config.html +++ b/app/templates/config.html @@ -62,8 +62,8 @@ {% else %}
Config ok
Go to view stats - {% endif %} + {% endif %} {% endblock %} \ No newline at end of file diff --git a/update.sh b/update.sh index 977354a..fdfd448 100644 --- a/update.sh +++ b/update.sh @@ -10,7 +10,7 @@ chown -R apache:apache * cd app/ ./update_db.py -pip install -r requirements.txt +pip3 install -r ../requirements.txt echo "" echo "#################"