if not enabled and shutil.which("systemctl"):
enabled = (tools.helpers.run.user(args, ["systemctl", "is-active", "-q", "apparmor"], check=False) == 0)
try:
if not enabled and shutil.which("systemctl"):
enabled = (tools.helpers.run.user(args, ["systemctl", "is-active", "-q", "apparmor"], check=False) == 0)
try: