Skip to content

Commit 314bcbd

Browse files
author
Oleksandr Shyshatskyi
committed
Added plesk elevation support
1 parent 2970eb0 commit 314bcbd

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

repos/system_upgrade/cloudlinux/actors/checkpanelmemory/libraries/checkpanelmemory.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,15 @@
99
INTEGRATED_NAME,
1010
CPANEL_NAME,
1111
DIRECTADMIN_NAME,
12+
PLESK_NAME,
1213
)
1314

1415
required_memory = {
1516
NOPANEL_NAME: 1536 * 1024, # 1.5 Gb
1617
UNKNOWN_NAME: 1536 * 1024, # 1.5 Gb
1718
INTEGRATED_NAME: 1536 * 1024, # 1.5 Gb
1819
DIRECTADMIN_NAME: 1536 * 1024, # 1.5 Gb
20+
PLESK_NAME: 1536 * 1024, # 1.5 Gb
1921
CPANEL_NAME: 1836 * 1024, # 1.8 Gb
2022
}
2123

repos/system_upgrade/cloudlinux/actors/detectcontrolpanel/actor.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
UNKNOWN_NAME,
1212
INTEGRATED_NAME,
1313
CPANEL_NAME,
14-
DIRECTADMIN_NAME
14+
DIRECTADMIN_NAME,
15+
PLESK_NAME
1516
)
1617

1718

@@ -31,7 +32,7 @@ def process(self):
3132
if panel is None:
3233
raise StopActorExecutionError(message=("Missing information about the installed web panel."))
3334

34-
if panel.name in (CPANEL_NAME, DIRECTADMIN_NAME):
35+
if panel.name in (CPANEL_NAME, DIRECTADMIN_NAME, PLESK_NAME):
3536
self.log.debug('%s detected, upgrade proceeding' % panel.name)
3637
elif panel.name == INTEGRATED_NAME or panel.name == UNKNOWN_NAME or panel.name == NOPANEL_NAME:
3738
self.log.debug('Integrated/no panel detected, upgrade proceeding')

0 commit comments

Comments
 (0)