Merge pull request #4717 from dokku/4710-silence-installer

Silence stderr when checking for ufw on debian systems
This commit is contained in:
Jose Diaz-Gonzalez
2021-08-06 03:13:48 -04:00
committed by GitHub

View File

@@ -62,7 +62,7 @@ if os.path.isfile(key_file):
ufw_display = 'block'
try:
command = "sudo ufw status"
ufw_output = bytes_to_string(subprocess.check_output(command, shell=True).strip())
ufw_output = bytes_to_string(subprocess.check_output(command, shell=True, stderr=subprocess.DEVNULL).strip())
if "inactive" in ufw_output:
ufw_display = 'none'
except subprocess.CalledProcessError: