mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-06-27 11:18:35 +02:00
debian 12
This commit is contained in:
@@ -81,7 +81,7 @@ class preFlightsChecks:
|
||||
def get_service_name(self, service):
|
||||
"""Get the correct service name for the current distribution"""
|
||||
service_map = {
|
||||
'pdns': 'pdns-server' if self.distro == debian12 else 'pdns'
|
||||
'pdns': 'pdns'
|
||||
}
|
||||
return service_map.get(service, service)
|
||||
|
||||
|
||||
@@ -119,7 +119,7 @@ class InstallCyberPanel:
|
||||
service_map = {
|
||||
'mariadb': 'mariadb',
|
||||
'pureftpd': 'pure-ftpd-mysql' if self.distro == ubuntu else 'pure-ftpd',
|
||||
'pdns': 'pdns-server' if self.distro == debian12 else 'pdns'
|
||||
'pdns': 'pdns'
|
||||
}
|
||||
|
||||
actual_service = service_map.get(service_name, service_name)
|
||||
|
||||
Reference in New Issue
Block a user