mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 05:23:35 +00:00
provision: Include DISTRIB_FAMILY in parse_lsb_release output.
This commit is contained in:
@@ -120,7 +120,7 @@ if (not is_rhel_based) and (not os.path.exists("/usr/bin/lsb_release")):
|
||||
distro_info = parse_lsb_release()
|
||||
vendor = distro_info['DISTRIB_ID']
|
||||
codename = distro_info['DISTRIB_CODENAME']
|
||||
family = 'redhat' if vendor in ['CentOS', 'Fedora', 'RedHat'] else 'debian'
|
||||
family = distro_info['DISTRIB_FAMILY']
|
||||
if not (vendor in SUPPORTED_PLATFORMS and codename in SUPPORTED_PLATFORMS[vendor]):
|
||||
logging.critical("Unsupported platform: {} {}".format(vendor, codename))
|
||||
sys.exit(1)
|
||||
|
||||
Reference in New Issue
Block a user