Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for kali linux + fixing amavis dependency issue #560

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion modoboa_installer/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def get_backend():
"""Return the appropriate package backend."""
distname = utils.dist_name()
backend = None
if distname in ["debian", "debian gnu/linux", "ubuntu", "linuxmint"]:
if distname in ["debian", "debian gnu/linux", "ubuntu", "linuxmint", "kali gnu/linux",]:
backend = DEBPackage
elif "centos" in distname:
backend = RPMPackage
Expand Down
2 changes: 1 addition & 1 deletion modoboa_installer/scripts/amavis.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class Amavis(base.Installer):
packages = {
"deb": [
"libdbi-perl", "amavisd-new", "arc", "arj", "cabextract",
"liblz4-tool", "lrzip", "lzop", "p7zip-full", "rpm2cpio",
"lz4", "lrzip", "lzop", "p7zip-full", "rpm2cpio",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you sure changing this package name has no impact on the other distributions?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As far as I understand all those are Debian derivatives and the naming should be the same, I will create a few VMs with Debian and Ubuntu and verify.

"unrar-free",
],
"rpm": [
Expand Down