Fixed new source bug, removed bionic, added dynamic defaults

This commit is contained in:
Spitap
2023-10-15 10:57:49 +02:00
committed by Antoine Nguyen
parent b667636dcb
commit bd91c85888
4 changed files with 17 additions and 27 deletions

View File

@@ -253,10 +253,11 @@ ConfigDictTemplate = [
},
{
"name": "rspamd",
"if": ["antispam.enabled=true", "antispam.type=amavis"],
"values": [
{
"option": "enabled",
"default": "true",
"default": ["antispam.enabled=true", "antispam.type=amavis"],
},
{
"option": "user",
@@ -265,6 +266,8 @@ ConfigDictTemplate = [
{
"option": "password",
"default": make_password,
"customizable": True,
"question": "Please enter Rspamd interface password",
},
{
"option": "dnsbl",
@@ -298,12 +301,10 @@ ConfigDictTemplate = [
},
{
"name": "amavis",
"if": ["antispam.enabled=true", "antispam.type=amavis"],
"values": [
{
"option": "enabled",
"default-if": "true",
"default": "false",
"default": ["antispam.enabled=true", "antispam.type=amavis"],
},
{
"option": "user",
@@ -422,12 +423,10 @@ ConfigDictTemplate = [
},
{
"name": "postwhite",
"if": ["antispam.enabled=true", "antispam.type=amavis"],
"values": [
{
"option": "enabled",
"default-if": "true",
"default": "false",
"default": ["antispam.enabled=true", "antispam.type=amavis"],
},
{
"option": "config_dir",
@@ -441,8 +440,7 @@ ConfigDictTemplate = [
"values": [
{
"option": "enabled",
"default-if": "true",
"default": "false",
"default": ["antispam.enabled=true", "antispam.type=amavis"],
},
{
"option": "config_dir",
@@ -512,8 +510,7 @@ ConfigDictTemplate = [
"values": [
{
"option": "enabled",
"default-if": "true",
"default": "false",
"default": ["antispam.enabled=true", "antispam.type=amavis"],
},
{
"option": "user",