From a650c08058fa555fe9cc8763173743ff0a28ac80 Mon Sep 17 00:00:00 2001 From: vitrinekast Date: Wed, 27 Mar 2024 00:43:07 +0100 Subject: [PATCH] move up --- script.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/script.py b/script.py index da0bc70..519a023 100644 --- a/script.py +++ b/script.py @@ -60,6 +60,7 @@ if not time_ago_arg: device_info = run_command(['awk', '-F:', '{ print $2}'], based=device_info_grab.stdout) ip_address_show = subprocess.run(["ip", "addr", "show", "end0"], check=True, capture_output=True) ip_address = run_command(['awk', '$1 == "inet" {gsub(/\/.*$/, "", $2); print $2}' ], based=ip_address_show.stdout) + list_active_services = run_command(["sudo", "service", "--status-all"]).splitlines() else: since_last_boot = False device_info = False @@ -120,7 +121,7 @@ output = template.render( days_since_last_boot = time_since_last_boot, kitchen_services = kitchen_services, ip_address = ip_address, - list_active_services = run_command(["sudo", "service", "--status-all"]).splitlines() if not time_ago_arg else False, + list_active_services = list_active_services, debian_version = run_command(["cat", "/etc/debian_version"]) if not time_ago_arg else False, hostname = run_command(["hostname","-i"]) if not time_ago_arg else False, groups_created = groups_created,