Added custom tls cert support
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user