If ufw isn't installed on the machine the status checks shouldn't fail
This commit is contained in:
parent
6ea1a06a12
commit
3b78a8d9d6
1 changed files with 4 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue