Make rspamd installation work

This commit is contained in:
Antoine Nguyen
2023-09-21 09:53:59 +02:00
parent 576c696472
commit daf5338ee1
2 changed files with 1 additions and 5 deletions

View File

@@ -106,7 +106,7 @@ def dist_name():
def is_dist_debian_based() -> (bool, str):
"""Check if current OS is Debian based or not."""
status, codename = exec_cmd("lsb_release -c -s")
codename = codename.lower()
codename = codename.strip().lower()
return codename in [
"bionic", "bookworm", "bullseye", "buster",
"focal", "jammy", "jessie", "sid", "stretch",