diff --git a/conf/retention.sh b/conf/retention.sh index 3b05bd9..74a787d 100644 --- a/conf/retention.sh +++ b/conf/retention.sh @@ -5,7 +5,7 @@ DB_USER="__DB_USER__" DB_NAME="__DB_NAME__" DB_PASS="__DB_PWD__" DB_HOST="localhost" -RETENTION="__RETENTION_DAY__" #number of days to *keep*; 93 ~ 3 months +RETENTION="__RETENTION__" #number of days to *keep*; 93 ~ 3 months DATA_DIR="__DATA_DIR__" # calculate epoch in milisec diff --git a/config_panel.toml b/config_panel.toml new file mode 100644 index 0000000..5121105 --- /dev/null +++ b/config_panel.toml @@ -0,0 +1,15 @@ +version = "1.0" + +[main] +name = "Mattermost configuration" +services = ["__APP__"] + + [main.congig] + name = "Retention mode" + + [main.config.retention] + ask = "Retention days" + type = "string" + default = "93" + help = "Vumber of days to *keep*; 93 ~ 3 months" + bind = "retention:__INSTALL_DIR__/retention.sh"