diff --git a/app/funct.py b/app/funct.py index 4e9ca33b..984d5a55 100644 --- a/app/funct.py +++ b/app/funct.py @@ -1409,4 +1409,5 @@ def is_service_active(server_ip: str, service_name: str): cmd = ['systemctl is-active ' + service_name] out = ssh_command(server_ip, cmd) - return True if 'active' in out else False + out = out.strip() + return True if 'active' == out else False diff --git a/app/templates/add.html b/app/templates/add.html index f86295af..30b2914d 100644 --- a/app/templates/add.html +++ b/app/templates/add.html @@ -26,8 +26,8 @@