mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2024-12-26 07:57:05 +00:00
If ufw isn't installed on the machine the status checks shouldn't fail
This commit is contained in:
parent
6ea1a06a12
commit
3b78a8d9d6
@ -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 New Issue
Block a user