mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-02-22 22:50:05 +01:00
debian 12
This commit is contained in:
@@ -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')
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user