Skip to content

Commit

Permalink
fixup! Introduce action to increase dovecot DH parameters size
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikhail Sandakov committed Mar 5, 2024
1 parent 830b689 commit 6f531c6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions pleskdistup/actions/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from .common_checks import *
from .common import *
from .distupgrade import *
from .emails import *
from .extensions import *
from .mariadb import *
from .packages import *
Expand Down
8 changes: 5 additions & 3 deletions pleskdistup/actions/emails.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@
from pleskdistup.common import action, log, util


class IncreaseDovecotDHParameters(action.ActiveAction):
def __init__(self):
class SetMinDovecotDhParamSize(action.ActiveAction):
dhparam_size: int

def __init__(self, dhparam_size: int):
self.name = "increase Dovecot DH parameters size to 2048 bits"
self.dhparam_size = 2048
self.dhparam_size = dhparam_size

def _is_required(self) -> bool:
proc = subprocess.run(
Expand Down

0 comments on commit 6f531c6

Please sign in to comment.