Merge pull request #533 from modoboa/fix-prevent-old-ext-install

Prevent installation of incompatible extensions
This commit is contained in:
Antoine Nguyen
2024-04-24 08:04:54 +02:00
committed by GitHub
4 changed files with 33 additions and 16 deletions

8
run.py
View File

@@ -38,6 +38,12 @@ PRIMARY_APPS = [
def installation_disclaimer(args, config):
"""Display installation disclaimer."""
hostname = config.get("general", "hostname")
utils.printcolor(
"Notice:\n"
"It is recommanded to run this installer on a FRESHLY installed server.\n"
"(ie. with nothing special already installed on it)\n",
utils.CYAN
)
utils.printcolor(
"Warning:\n"
"Before you start the installation, please make sure the following "
@@ -48,7 +54,7 @@ def installation_disclaimer(args, config):
hostname.replace(".{}".format(args.domain), ""),
hostname
),
utils.CYAN
utils.YELLOW
)
utils.printcolor(
"Your mail server will be installed with the following components:",