Skip to content

Commit

Permalink
Adding basic DirectAdmin elevation support
Browse files Browse the repository at this point in the history
  • Loading branch information
Monstrofil committed May 16, 2024
1 parent 0be27ee commit 0e81dcd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,14 @@
UNKNOWN_NAME,
INTEGRATED_NAME,
CPANEL_NAME,
DIRECTADMIN_NAME,
)

required_memory = {
NOPANEL_NAME: 1536 * 1024, # 1.5 Gb
UNKNOWN_NAME: 1536 * 1024, # 1.5 Gb
INTEGRATED_NAME: 1536 * 1024, # 1.5 Gb
DIRECTADMIN_NAME: 1536 * 1024, # 1.5 Gb
CPANEL_NAME: 1836 * 1024, # 1.8 Gb
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
UNKNOWN_NAME,
INTEGRATED_NAME,
CPANEL_NAME,
DIRECTADMIN_NAME
)


Expand All @@ -30,8 +31,8 @@ def process(self):
if panel is None:
raise StopActorExecutionError(message=("Missing information about the installed web panel."))

if panel.name == CPANEL_NAME:
self.log.debug('cPanel detected, upgrade proceeding')
if panel.name in (CPANEL_NAME, DIRECTADMIN_NAME):
self.log.debug('%s detected, upgrade proceeding' % panel.name)
elif panel.name == INTEGRATED_NAME or panel.name == UNKNOWN_NAME or panel.name == NOPANEL_NAME:
self.log.debug('Integrated/no panel detected, upgrade proceeding')
elif panel:
Expand Down

0 comments on commit 0e81dcd

Please sign in to comment.