Added custom tls cert support

This commit is contained in:
Spitap
2023-06-21 21:07:20 +02:00
committed by Antoine Nguyen
parent ccae88bb77
commit 4759146d99
4 changed files with 104 additions and 20 deletions

View File

@@ -316,6 +316,19 @@ def get_entry_value(entry, interactive):
if entry.get("values") and user_value != "":
user_value = values[int(user_value)]
condition = (
entry.get("value_return") and
user_value in entry.get("value_return")
)
if condition:
error(f"{user_value} cannot be set interactively, "
"Please configure installer.cfg manually by running "
"'python3 run.py ----stop-after-configfile-check domain'. "
"Check modoboa-installer Readme for more information."
)
sys.exit(1)
return user_value if user_value else default_value