diff --git a/install/install.py b/install/install.py index 0d2b69ab3..f2cd71320 100644 --- a/install/install.py +++ b/install/install.py @@ -1673,7 +1673,7 @@ $cfg['Servers'][$i]['LogoutURL'] = 'phpmyadminsignin.php?logout'; def installFirewalld(self): - if self.distro == ubuntu: + if self.distro == ubuntu or self.distro == debian12: self.removeUfw() try: @@ -1683,9 +1683,14 @@ $cfg['Servers'][$i]['LogoutURL'] = 'phpmyadminsignin.php?logout'; ###### if self.distro == centos: - # Not available in ubuntu + # Not available in ubuntu/debian self.manage_service('dbus', 'restart') + elif self.distro == debian12: + # For Debian 12, ensure dbus is running for firewalld + self.manage_service('dbus', 'start') + self.manage_service('dbus', 'enable') + # Restart systemd-logind on all systems self.manage_service('systemd-logind', 'restart') self.manage_service('firewalld', 'start') diff --git a/install/install_utils.py b/install/install_utils.py index 69c390773..17efe4a5e 100644 --- a/install/install_utils.py +++ b/install/install_utils.py @@ -141,7 +141,8 @@ def get_debian_mariadb_packages(): 'python': 'python3', 'dovecot-pigeonhole': 'dovecot-sieve', 'pdns': 'pdns-server', - 'pdns-backend-mysql': 'pdns-backend-mysql' + 'pdns-backend-mysql': 'pdns-backend-mysql', + 'firewalld': 'firewalld' } elif debian_version >= 12.0: # Debian 12 (Bookworm) @@ -156,7 +157,8 @@ def get_debian_mariadb_packages(): 'python': 'python3', 'dovecot-pigeonhole': 'dovecot-sieve', 'pdns': 'pdns-server', - 'pdns-backend-mysql': 'pdns-backend-mysql' + 'pdns-backend-mysql': 'pdns-backend-mysql', + 'firewalld': 'firewalld' } else: # Older Debian versions (11 and below)