Skip to content

Commit 45a4c7b

Browse files
authored
Merge pull request #622 from modoboa/add-debian-codename
chore: add new codename for Debian and Ubuntu
2 parents 00d79f5 + 7917e58 commit 45a4c7b

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

modoboa_installer/utils.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,12 @@ def is_dist_debian_based() -> (bool, str):
9999
status, codename = exec_cmd("lsb_release -c -s")
100100
codename = codename.decode().strip().lower()
101101
return codename in [
102-
"bionic", "bookworm", "bullseye", "buster",
103-
"focal", "jammy", "jessie", "sid", "stretch",
104-
"trusty", "wheezy", "xenial"
102+
# Debian
103+
"duke", "forky", "trixie", "bookworm", "bullseye",
104+
"buster","jessie", "sid", "stretch", "wheezy",
105+
# Ubuntu
106+
"resolute", "questing", "plucky", "noble", "bionic",
107+
"focal", "jammy", "trusty", "xenial"
105108
], codename
106109

107110

0 commit comments

Comments
 (0)