From 3b78a8d9d67f7f7f2697d20d740f6c94a344ce21 Mon Sep 17 00:00:00 2001 From: yodax Date: Fri, 28 Oct 2016 11:20:05 +0200 Subject: [PATCH] If ufw isn't installed on the machine the status checks shouldn't fail --- management/status_checks.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/management/status_checks.py b/management/status_checks.py index f138b5e9..ed1a403e 100755 --- a/management/status_checks.py +++ b/management/status_checks.py @@ -169,6 +169,10 @@ def run_system_checks(rounded_values, env, output): check_free_memory(rounded_values, env, output) def check_ufw(env, output): + if not os.path.isfile('/usr/sbin/ufw'): + output.print_warning("""The ufw program was not installed. If your system is able to run iptables, rerun the setup.""") + return + code, ufw = shell('check_output', ['ufw', 'status'], trap=True) if code != 0: