From dff1e53409423106a00322571335d6f1364134f3 Mon Sep 17 00:00:00 2001 From: AllanNICOLE Date: Sat, 20 Aug 2022 12:45:08 +0200 Subject: [PATCH 01/11] Update api 19.2 and frontend 19.1 --- README.md | 5 ++++- README_fr.md | 4 +++- conf/amd64.src | 4 ++-- conf/arm64.src | 4 ++-- conf/armhf.src | 4 ++-- conf/front.src | 4 ++-- conf/i386.src | 4 ++-- manifest.json | 2 +- 8 files changed, 18 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 93a4c7b..2ef9047 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ Vikunja is a self-hosted open-source to-do list application for all platforms. - CalDAV - Links -**Shipped version:** 0.19.0~ynh1 +**Shipped version:** 0.19.2~ynh1 **Demo:** https://try.vikunja.io/login @@ -46,10 +46,13 @@ The API is accesible with this path: https://domain.ltd/api/v1/docs * Official app website: * Official admin documentation: +* Official download portal: +* Official blog (usefull for release note): * Upstream app code repository: * YunoHost documentation for this app: * Report a bug: + ## Developer info Please send your pull request to the [testing branch](https://github.com/YunoHost-Apps/vikunja_ynh/tree/testing). diff --git a/README_fr.md b/README_fr.md index b975191..ef0a5a5 100644 --- a/README_fr.md +++ b/README_fr.md @@ -26,7 +26,7 @@ Vikunja est une application de liste de tâches Open Source auto-hébergée pour - CalDAV - Links -**Version incluse :** 0.19.0~ynh1 +**Version incluse :** 0.19.2~ynh1 **Démo :** https://try.vikunja.io/login @@ -43,6 +43,8 @@ Vous pouvez configurer Vikunja en modifiant le fichier `/opt/vikunja/config.yml` * Site officiel de l'app : * Documentation officielle de l'admin : +* Portail de téléchargement officiel: +* Blog officiel (utile pour avoir les changements de chaque version): * Dépôt de code officiel de l'app : * Documentation YunoHost pour cette app : * Signaler un bug : diff --git a/conf/amd64.src b/conf/amd64.src index 67f555e..da1242b 100644 --- a/conf/amd64.src +++ b/conf/amd64.src @@ -1,5 +1,5 @@ -SOURCE_URL=https://dl.vikunja.io/api/0.19.0/vikunja-v0.19.0-linux-amd64-full -SOURCE_SUM=D005FD544862B6D01402B7AFA5CAE5A9E5E634112D90EECF6F2781DA83A7A524 +SOURCE_URL=https://dl.vikunja.io/api/0.19.2/vikunja-v0.19.2-linux-amd64-full +SOURCE_SUM=16F4483929C659021A8F61465FA5A10C9EDCC3CBB6F0D8AC8ED96570034CB50C SOURCE_SUM_PRG=sha256sum SOURCE_IN_SUBDIR=false SOURCE_FORMAT=zip diff --git a/conf/arm64.src b/conf/arm64.src index 8d89e44..b5abedf 100644 --- a/conf/arm64.src +++ b/conf/arm64.src @@ -1,5 +1,5 @@ -SOURCE_URL=https://dl.vikunja.io/api/0.19.0/vikunja-v0.19.0-linux-arm64-full -SOURCE_SUM=CB457F651DE3E4551F36F20389161C0407D10D9821F520357ECE5ED669311943 +SOURCE_URL=https://dl.vikunja.io/api/0.19.2/vikunja-v0.19.2-linux-arm64-full +SOURCE_SUM=9C3104D42F9B7448D045208C0C5DBF5AC8648B78E7907697264A3031972926EA SOURCE_SUM_PRG=sha256sum SOURCE_IN_SUBDIR=false SOURCE_FORMAT=zip diff --git a/conf/armhf.src b/conf/armhf.src index 991bb3d..1227716 100644 --- a/conf/armhf.src +++ b/conf/armhf.src @@ -1,5 +1,5 @@ -SOURCE_URL=https://dl.vikunja.io/api/0.19.0/vikunja-v0.19.0-linux-arm-7-full -SOURCE_SUM=A5B393C7900C6A77E1887A496E9A66E2762972DA76C961CA8264EF469B24177B +SOURCE_URL=https://dl.vikunja.io/api/0.19.2/vikunja-v0.19.2-linux-arm-7-full +SOURCE_SUM=F82B9DF0DE4F36AEF6535DC5425CF45151815E67DBC8BAF9921E38C454AFD724 SOURCE_SUM_PRG=sha256sum SOURCE_IN_SUBDIR=false SOURCE_FORMAT=zip diff --git a/conf/front.src b/conf/front.src index 4a90b6f..816b992 100644 --- a/conf/front.src +++ b/conf/front.src @@ -1,5 +1,5 @@ -SOURCE_URL=https://dl.vikunja.io/frontend/vikunja-frontend-0.19.0.zip -SOURCE_SUM=A5D50D3DF1A06D23325DC4B61CA31E908888CC9DC6BAD1C2B348055641CDF727 +SOURCE_URL=https://dl.vikunja.io/frontend/vikunja-frontend-0.19.1.zip +SOURCE_SUM=29FE793359BF34142181ABA5FF8B1E0CC74F154F238603B04CD033760560D8E4 SOURCE_SUM_PRG=sha256sum SOURCE_FORMAT=zip SOURCE_IN_SUBDIR=false diff --git a/conf/i386.src b/conf/i386.src index 194a3ee..9a4b110 100644 --- a/conf/i386.src +++ b/conf/i386.src @@ -1,5 +1,5 @@ -SOURCE_URL=https://dl.vikunja.io/api/0.19.0/vikunja-v0.19.0-linux-386-full -SOURCE_SUM=66C21ED000B084B9268E2A0783BE49EC982782F9417050D38683D979555F6E95 +SOURCE_URL=https://dl.vikunja.io/api/0.19.2/vikunja-v0.19.2-linux-386-full +SOURCE_SUM=6D532EEA15A966446F1B975A8F1D7B64F75AFB2148C09680728C0060FACB5608 SOURCE_SUM_PRG=sha256sum SOURCE_IN_SUBDIR=false SOURCE_FORMAT=zip diff --git a/manifest.json b/manifest.json index c857961..728ffe3 100644 --- a/manifest.json +++ b/manifest.json @@ -6,7 +6,7 @@ "en": "Self-hosted To-Do list application", "fr": "Application de liste de tâches auto-hébergée" }, - "version": "0.19.0~ynh1", + "version": "0.19.2~ynh1", "url": "https://vikunja.io/", "upstream": { "license": "GPL-3.0", From 7097f352e755b073493e059765acee213f7d8b55 Mon Sep 17 00:00:00 2001 From: AllanNICOLE Date: Sat, 20 Aug 2022 13:02:08 +0200 Subject: [PATCH 02/11] Add some usefull config options on confil panel --- config_panel.toml | 52 +++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 48 insertions(+), 4 deletions(-) diff --git a/config_panel.toml b/config_panel.toml index f6887f3..57b5136 100644 --- a/config_panel.toml +++ b/config_panel.toml @@ -8,16 +8,60 @@ services = ["__APP__"] name = "Configuration Options" [main.config.set_motd] - ask = "Set MOTD" + ask.en = "Set MOTD" + ask.fr = "Définir MOTD" type = "string" - help = "Set the MOTD message shown in Vikunja login page" + help.en = "Set the MOTD message shown in Vikunja login page" + help.fr = "Message du jour qui apparait sur la page d'authentification de Vikunja" bind = "motd:/opt/__APP__/config.yml" [main.config.enable_registration] - ask = "Enable registration" + ask.en = "Enable registration" + ask.fr = "Activer la création de comptes" type = "boolean" yes = "true" no = "false" - help = "Whether to let new users registering themselves or not" + help.en = "Whether to let new users registering themselves or not" + help.fr = "Permettre ou non aux nouveaux utilisateurs de s'enregistrer eux-mêmes" bind = "enableregistration:/opt/__APP__/config.yml" + [main.config.enable_linksharing] + ask.en = "Enable links sharing" + ask.fr = "Activer liens de partage" + type = "boolean" + yes = "true" + no = "false" + help.en = "Enable sharing of lists via a link" + help.fr = "Permettre le partage des listes via un lien" + bind = "enablelinksharing:/opt/__APP__/config.yml" + + [main.config.enable_taskattachments] + ask.en = "Enable tasks attachments" + ask.fr = "Activer les pièces jointes de tâches" + type = "boolean" + yes = "true" + no = "false" + help.en = "Whether to enable task attachments or not" + help.fr = "Permettre ou non d'ajouter des pièces jointes aux tâches" + bind = "enabletaskattachments:/opt/__APP__/config.yml" + + [main.config.enable_taskcomments] + ask.en = "Enable task comments" + ask.fr = "Activer les commentaires de tâches" + type = "boolean" + yes = "true" + no = "false" + help.en = "Whether task comments should be enabled or not" + help.fr = "Permettre ou non d'ajouter des commentaires aux taches" + bind = "enabletaskcomments:/opt/__APP__/config.yml" + + [main.config.enable_emailreminders] + ask.en = "Enable email reminders" + ask.fr = "Activer les mails de rappels" + type = "boolean" + yes = "true" + no = "false" + help.en = "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." + help.fr = "Si cette option est activée, Vikunja enverra un e-mail à tous ceux qui sont affectés à une tâche ou qui l'ont créée lorsqu'un rappel de tâche est dû." + bind = "enableemailreminders:/opt/__APP__/config.yml" + From fe5e902a0eafa3b4d5cc14d9218bdcf734bce7cf Mon Sep 17 00:00:00 2001 From: AllanNICOLE Date: Sat, 20 Aug 2022 21:30:43 +0200 Subject: [PATCH 03/11] Remove frech help because doesn't work --- config_panel.toml | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/config_panel.toml b/config_panel.toml index 57b5136..7db2f93 100644 --- a/config_panel.toml +++ b/config_panel.toml @@ -2,6 +2,7 @@ version = "1.0" [main] name = "Vikunja configuration" + services = ["__APP__"] [main.config] @@ -11,8 +12,7 @@ services = ["__APP__"] ask.en = "Set MOTD" ask.fr = "Définir MOTD" type = "string" - help.en = "Set the MOTD message shown in Vikunja login page" - help.fr = "Message du jour qui apparait sur la page d'authentification de Vikunja" + help = "Set the MOTD message shown in Vikunja login page" bind = "motd:/opt/__APP__/config.yml" [main.config.enable_registration] @@ -21,8 +21,7 @@ services = ["__APP__"] type = "boolean" yes = "true" no = "false" - help.en = "Whether to let new users registering themselves or not" - help.fr = "Permettre ou non aux nouveaux utilisateurs de s'enregistrer eux-mêmes" + help = "Whether to let new users registering themselves or not" bind = "enableregistration:/opt/__APP__/config.yml" [main.config.enable_linksharing] @@ -31,8 +30,7 @@ services = ["__APP__"] type = "boolean" yes = "true" no = "false" - help.en = "Enable sharing of lists via a link" - help.fr = "Permettre le partage des listes via un lien" + help = "Enable sharing of lists via a link" bind = "enablelinksharing:/opt/__APP__/config.yml" [main.config.enable_taskattachments] @@ -41,8 +39,7 @@ services = ["__APP__"] type = "boolean" yes = "true" no = "false" - help.en = "Whether to enable task attachments or not" - help.fr = "Permettre ou non d'ajouter des pièces jointes aux tâches" + help = "Whether to enable task attachments or not" bind = "enabletaskattachments:/opt/__APP__/config.yml" [main.config.enable_taskcomments] @@ -51,8 +48,7 @@ services = ["__APP__"] type = "boolean" yes = "true" no = "false" - help.en = "Whether task comments should be enabled or not" - help.fr = "Permettre ou non d'ajouter des commentaires aux taches" + help = "Whether task comments should be enabled or not" bind = "enabletaskcomments:/opt/__APP__/config.yml" [main.config.enable_emailreminders] @@ -61,7 +57,6 @@ services = ["__APP__"] type = "boolean" yes = "true" no = "false" - help.en = "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." - help.fr = "Si cette option est activée, Vikunja enverra un e-mail à tous ceux qui sont affectés à une tâche ou qui l'ont créée lorsqu'un rappel de tâche est dû." + 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" From 1b48f0f334b1912e1306d96233c3f54cf1342f0f Mon Sep 17 00:00:00 2001 From: AllanNICOLE Date: Sat, 20 Aug 2022 21:45:57 +0200 Subject: [PATCH 04/11] latest useful services options --- config_panel.toml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/config_panel.toml b/config_panel.toml index 7db2f93..d88af8e 100644 --- a/config_panel.toml +++ b/config_panel.toml @@ -60,3 +60,26 @@ 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 ] + ask.en = "Enable user deletion" + ask.fr = "Activer la suppression de compte" + type = "boolean" + yes = "true" + no = "false" + help = "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" + bind = "enableuserdeletion:/opt/__APP__/config.yml" + + [main.config.maxavatarsize] + ask.en = "Max avatar size" + ask.fr = "Taille maximum de l'avatar" + type = "number" + help = "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" + bind = "maxavatarsize:/opt/__APP__/config.yml" + + [main.config.maxitemsperpage] + ask.en = "Max items per page" + ask.fr = "Nombre d'éléments maximum par page" + type = "number" + help = "The max number of items which can be returned per page" + bind = "maxitemsperpage:/opt/__APP__/config.yml" + From fd0b3968bd17aa02159c1bc533d4461bd21c4e60 Mon Sep 17 00:00:00 2001 From: AllanNICOLE Date: Sat, 20 Aug 2022 22:06:43 +0200 Subject: [PATCH 05/11] 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 From 2a7189dc67bb9227cb5c00512a1288d4c9ed22f5 Mon Sep 17 00:00:00 2001 From: AllanNICOLE Date: Sat, 20 Aug 2022 22:21:33 +0200 Subject: [PATCH 06/11] Install & Upgrade script --- scripts/install | 14 ++++++++++++++ scripts/upgrade | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 49 insertions(+) diff --git a/scripts/install b/scripts/install index 6cce381..bc6f118 100644 --- a/scripts/install +++ b/scripts/install @@ -30,6 +30,13 @@ app=$YNH_APP_INSTANCE_NAME set_motd="" enable_registration="true" +enable_linksharing="true" +enable_taskattachments="true" +enable_taskcomments="true" +enable_emailreminders="true" +enable_userdeletion="true" +maxavatarsize=1024 +maxitemsperpage=50 #================================================= # CHECK IF THE APP CAN BE INSTALLED WITH THESE ARGS @@ -52,6 +59,13 @@ ynh_app_setting_set --app=$app --key=domain --value=$domain ynh_app_setting_set --app=$app --key=path --value=$path_url ynh_app_setting_set --app=$app --key=set_motd --value=$set_motd ynh_app_setting_set --app=$app --key=enable_registration --value=$enable_registration +ynh_app_setting_set --app=$app --key=enable_linksharing --value=$enable_linksharing +ynh_app_setting_set --app=$app --key=enable_taskattachments --value=$enable_taskattachments +ynh_app_setting_set --app=$app --key=enable_taskcomments --value=$enable_taskcomments +ynh_app_setting_set --app=$app --key=enable_emailreminders --value=$enable_emailreminders +ynh_app_setting_set --app=$app --key=enable_userdeletion --value=$enable_userdeletion +ynh_app_setting_set --app=$app --key=maxavatarsize --value=$maxavatarsize +ynh_app_setting_set --app=$app --key=maxitemsperpage --value=$maxitemsperpage #================================================= # STANDARD MODIFICATIONS diff --git a/scripts/upgrade b/scripts/upgrade index 4085044..c20ae68 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -79,6 +79,41 @@ if [ -z "$enable_registration" ]; then ynh_app_setting_set --app=$app --key=enable_registration --value=$enable_registration fi +if [ -z "$enable_linksharing" ]; then + enable_linksharing="true" + ynh_app_setting_set --app=$app --key=enable_linksharing --value=$enable_linksharing +fi + +if [ -z "$enable_taskattachments" ]; then + enable_taskattachments="true" + ynh_app_setting_set --app=$app --key=enable_taskattachments --value=$enable_taskattachments +fi + +if [ -z "$enable_taskcomments" ]; then + enable_taskcomments="true" + ynh_app_setting_set --app=$app --key=enable_taskcomments --value=$enable_taskcomments +fi + +if [ -z "$enable_emailreminders" ]; then + enable_emailreminders="true" + ynh_app_setting_set --app=$app --key=enable_emailreminders --value=$enable_emailreminders +fi + +if [ -z "$enable_userdeletion" ]; then + enable_userdeletion="true" + ynh_app_setting_set --app=$app --key=enable_userdeletion --value=$enable_userdeletion +fi + +if [ -z "$maxavatarsize" ]; then + maxavatarsize="true" + ynh_app_setting_set --app=$app --key=maxavatarsize --value=$maxavatarsize +fi + +if [ -z "$maxitemsperpage" ]; then + maxitemsperpage="true" + ynh_app_setting_set --app=$app --key=maxitemsperpage --value=$maxitemsperpage +fi + # Cleaning legacy permissions if ynh_legacy_permissions_exists; then ynh_legacy_permissions_delete_all From bd13bdc8313e0bb902a688e48d038a7852944933 Mon Sep 17 00:00:00 2001 From: AllanNICOLE Date: Sat, 20 Aug 2022 22:37:28 +0200 Subject: [PATCH 07/11] fix template config --- conf/config.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/conf/config.yml b/conf/config.yml index 7b2f93b..a914ddb 100644 --- a/conf/config.yml +++ b/conf/config.yml @@ -12,21 +12,21 @@ service: # with a config file which will then be used. rootpath: "/opt/vikunja/" # The max number of items which can be returned per page - maxitemsperpage: 50 + maxitemsperpage: __MAXITEMSPERPAGE__ # Enable the caldav endpoint, see the docs for more details enablecaldav: true # Set the motd message, available from the /info endpoint motd: __SET_MOTD__ # Enable sharing of lists via a link - enablelinksharing: true + enablelinksharing: __ENABLE_LINKSHARING__ # Whether to let new users registering themselves or not enableregistration: __ENABLE_REGISTRATION__ # Whether to enable task attachments or not - enabletaskattachments: true + enabletaskattachments: __ENABLE_TASKATTACHMENTS__ # The time zone all timestamps are in. Please note that time zones have to use [the official tz database names](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). UTC or GMT offsets won't work. timezone: __TIMEZONE__ # Whether task comments should be enabled or not - enabletaskcomments: true + enabletaskcomments: __ENABLE_TASKCOMMENTS__ # Whether totp is enabled. In most cases you want to leave that enabled. enabletotp: true # If not empty, enables logging of crashes and unhandled errors in sentry. @@ -38,14 +38,14 @@ service: testingtoken: '' # 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 + enableemailreminders: __ENABLE_EMAILREMINDERS__ # 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 + enableuserdeletion: __ENABLE_USERDELETION__ # 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 + maxavatarsize: __MAXAVATARSIZE__ database: # Database type to use. Supported types are mysql, postgres and sqlite. From c6ea30a650d182dfc647729cbfc3acd873668643 Mon Sep 17 00:00:00 2001 From: AllanNICOLE Date: Mon, 22 Aug 2022 20:55:02 +0200 Subject: [PATCH 08/11] Test config file --- scripts/upgrade | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/scripts/upgrade b/scripts/upgrade index c20ae68..0ea685d 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -169,6 +169,17 @@ chown -R $app:www-data "$final_path" chmod +x "$backend_path/vikunja" chown -R $app:www-data "$backend_path/files" +#================================================= +# UPGRADE A CONFIGURATION +#================================================= +ynh_script_progression --message="Upgrading a configuration file..." --weight=1 + +redis_db=$(ynh_redis_get_free_db) +ynh_add_config --template="../conf/config.yml" --destination="$backend_path/config.yml" + +chmod 400 "$backend_path/config.yml" +chown $app:$app "$backend_path/config.yml" + #================================================= # NGINX CONFIGURATION #================================================= From 76467331c8dcc9d933b30eac181016572255975c Mon Sep 17 00:00:00 2001 From: AllanNICOLE Date: Mon, 22 Aug 2022 21:09:52 +0200 Subject: [PATCH 09/11] fix upgrade script default value --- scripts/upgrade | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 0ea685d..e5a3e64 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -105,12 +105,12 @@ if [ -z "$enable_userdeletion" ]; then fi if [ -z "$maxavatarsize" ]; then - maxavatarsize="true" + maxavatarsize=1024 ynh_app_setting_set --app=$app --key=maxavatarsize --value=$maxavatarsize fi if [ -z "$maxitemsperpage" ]; then - maxitemsperpage="true" + maxitemsperpage=50 ynh_app_setting_set --app=$app --key=maxitemsperpage --value=$maxitemsperpage fi From f66b4712a51b84ac3b3893354701612ea13acda3 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Tue, 23 Aug 2022 07:35:50 +0200 Subject: [PATCH 10/11] Add missing var --- scripts/change_url | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/change_url b/scripts/change_url index 9216339..658fcf0 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -38,6 +38,7 @@ timezone="$(cat /etc/timezone)" set_motd=$(ynh_app_setting_get --app=$app --key=set_motd) enable_registration=$(ynh_app_setting_get --app=$app --key=enable_registration) +enable_emailreminders=$(ynh_app_setting_get --app=$app --key=enable_emailreminders) #================================================= # BACKUP BEFORE UPGRADE THEN ACTIVE TRAP From 489511b7a66544818a52b173278e75bbcfbc558c Mon Sep 17 00:00:00 2001 From: AllanNICOLE Date: Sun, 28 Aug 2022 10:44:45 +0200 Subject: [PATCH 11/11] missing vars --- scripts/change_url | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/change_url b/scripts/change_url index 658fcf0..a51b808 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -38,7 +38,13 @@ timezone="$(cat /etc/timezone)" 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) #================================================= # BACKUP BEFORE UPGRADE THEN ACTIVE TRAP