From fd0b3968bd17aa02159c1bc533d4461bd21c4e60 Mon Sep 17 00:00:00 2001 From: AllanNICOLE Date: Sat, 20 Aug 2022 22:06:43 +0200 Subject: [PATCH] Template config + upgrade script file --- conf/config.yml | 7 +++++++ config_panel.toml | 2 +- scripts/upgrade | 8 ++++++++ 3 files changed, 16 insertions(+), 1 deletion(-) diff --git a/conf/config.yml b/conf/config.yml index 9ecd451..7b2f93b 100644 --- a/conf/config.yml +++ b/conf/config.yml @@ -39,6 +39,13 @@ service: # If enabled, vikunja will send an email to everyone who is either assigned to a task or created it when a task reminder # is due. enableemailreminders: true + # If true, will allow users to request the complete deletion of their account. When using external authentication methods + # it may be required to coordinate with them in order to delete the account. This setting will not affect the cli commands + # for user deletion. + enableuserdeletion: true + # The maximum size clients will be able to request for user avatars. + # If clients request a size bigger than this, it will be changed on the fly. + maxavatarsize: 1024 database: # Database type to use. Supported types are mysql, postgres and sqlite. diff --git a/config_panel.toml b/config_panel.toml index d88af8e..a12da4d 100644 --- a/config_panel.toml +++ b/config_panel.toml @@ -60,7 +60,7 @@ services = ["__APP__"] help = "If enabled, vikunja will send an email to everyone who is either assigned to a task or created it when a task reminder is due." bind = "enableemailreminders:/opt/__APP__/config.yml" - [main.config.enable_userdeletion ] + [main.config.enable_userdeletion] ask.en = "Enable user deletion" ask.fr = "Activer la suppression de compte" type = "boolean" diff --git a/scripts/upgrade b/scripts/upgrade index a31f1bf..4085044 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -29,6 +29,14 @@ secret=$(ynh_string_random --length=32) set_motd=$(ynh_app_setting_get --app=$app --key=set_motd) enable_registration=$(ynh_app_setting_get --app=$app --key=enable_registration) +enable_linksharing=$(ynh_app_setting_get --app=$app --key=enable_linksharing) +enable_taskattachments=$(ynh_app_setting_get --app=$app --key=enable_taskattachments) +enable_taskcomments=$(ynh_app_setting_get --app=$app --key=enable_taskcomments) +enable_emailreminders=$(ynh_app_setting_get --app=$app --key=enable_emailreminders) +enable_userdeletion=$(ynh_app_setting_get --app=$app --key=enable_userdeletion) +maxavatarsize=$(ynh_app_setting_get --app=$app --key=maxavatarsize) +maxitemsperpage=$(ynh_app_setting_get --app=$app --key=maxitemsperpage) + #================================================= # CHECK VERSION