debian 12

This commit is contained in:
usmannasir
2025-09-18 14:20:01 +05:00
parent 91d7c1457f
commit e9b2220246
2 changed files with 11 additions and 4 deletions

View File

@@ -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')

View File

@@ -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)