From b2162b5b6a98da592f11203db4fb66a6746d0f4d Mon Sep 17 00:00:00 2001 From: Yunohost-Bot <> Date: Sun, 16 Jan 2022 13:01:42 +0000 Subject: [PATCH 01/10] Auto-update README --- README.md | 11 ++++++++++- README_fr.md | 9 +++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a446a8c..028a177 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,16 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in ## Overview -Self-hosted To-Do list application +Vikunja is a self-hosted open-source to-do list application for all platforms. + +### Features + +- Stay organized +- Collaborate with peers +- Tasks +- Kanban board +- CalDAV +- Links **Shipped version:** 0.18.1~ynh4 diff --git a/README_fr.md b/README_fr.md index 16a5b14..a224649 100644 --- a/README_fr.md +++ b/README_fr.md @@ -13,6 +13,15 @@ Si vous n'avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour Vikunja est une application de liste de tâches Open Source auto-hébergée pour toutes les plateformes. +### Features + +- Stay organized +- Collaborate with peers +- Tasks +- Kanban board +- CalDAV +- Links + **Version incluse :** 0.18.1~ynh4 **Démo :** https://try.vikunja.io/login From bcc9eb2b7e3a6b08b06a52cdc00fc0e619de2190 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sun, 16 Jan 2022 14:21:08 +0100 Subject: [PATCH 02/10] Update manifest.json --- manifest.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifest.json b/manifest.json index 59d481b..14bc238 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.18.1~ynh4", + "version": "0.18.2~ynh1", "url": "https://vikunja.io/", "upstream": { "license": "GPL-3.0", From 6a6743ae73da39a0052cb291ba341c1d550f6aed Mon Sep 17 00:00:00 2001 From: Yunohost-Bot <> Date: Sun, 16 Jan 2022 13:21:15 +0000 Subject: [PATCH 03/10] Auto-update README --- README.md | 2 +- README_fr.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a446a8c..08b5364 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in Self-hosted To-Do list application -**Shipped version:** 0.18.1~ynh4 +**Shipped version:** 0.18.2~ynh1 **Demo:** https://try.vikunja.io/login diff --git a/README_fr.md b/README_fr.md index 16a5b14..4fda8e6 100644 --- a/README_fr.md +++ b/README_fr.md @@ -13,7 +13,7 @@ Si vous n'avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour Vikunja est une application de liste de tâches Open Source auto-hébergée pour toutes les plateformes. -**Version incluse :** 0.18.1~ynh4 +**Version incluse :** 0.18.2~ynh1 **Démo :** https://try.vikunja.io/login From fa64c21dd1051d44430cbee8c45faacf1a207023 Mon Sep 17 00:00:00 2001 From: Yunohost-Bot <> Date: Sun, 16 Jan 2022 13:22:16 +0000 Subject: [PATCH 04/10] Auto-update README --- README.md | 2 +- README_fr.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 028a177..4e14c87 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.18.1~ynh4 +**Shipped version:** 0.18.2~ynh1 **Demo:** https://try.vikunja.io/login diff --git a/README_fr.md b/README_fr.md index a224649..eb5817d 100644 --- a/README_fr.md +++ b/README_fr.md @@ -22,7 +22,7 @@ Vikunja est une application de liste de tâches Open Source auto-hébergée pour - CalDAV - Links -**Version incluse :** 0.18.1~ynh4 +**Version incluse :** 0.18.2~ynh1 **Démo :** https://try.vikunja.io/login From 0fdf0be4a647b05d7795a2a020b96736999407eb Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sun, 16 Jan 2022 16:12:55 +0100 Subject: [PATCH 05/10] Fix --- conf/config.yml | 2 +- config_panel.toml | 15 +++++++++++++++ scripts/install | 6 +++++- scripts/upgrade | 7 +++++++ 4 files changed, 28 insertions(+), 2 deletions(-) create mode 100644 config_panel.toml diff --git a/conf/config.yml b/conf/config.yml index 4ea9c3c..d8a061d 100644 --- a/conf/config.yml +++ b/conf/config.yml @@ -16,7 +16,7 @@ service: # Enable the caldav endpoint, see the docs for more details enablecaldav: true # Set the motd message, available from the /info endpoint - motd: "" + motd: __SET_MOTD__ # Enable sharing of lists via a link enablelinksharing: true # Whether to let new users registering themselves or not diff --git a/config_panel.toml b/config_panel.toml new file mode 100644 index 0000000..bbce81f --- /dev/null +++ b/config_panel.toml @@ -0,0 +1,15 @@ +version = "1.0" + +[main] +name = "Vikunja configuration" +services = ["__APP__"] + + [main.config] + name = "Configuration Options" + + [main.config.set_motd] + ask = "Set MOTD" + type = "string" + help = "Set the motd message, available from the /info endpoint" + bind = "motd:/etc/vikunja/config.yml" + diff --git a/scripts/install b/scripts/install index e3e4662..cd0b715 100644 --- a/scripts/install +++ b/scripts/install @@ -28,6 +28,8 @@ secret=$(ynh_string_random --length=32) app=$YNH_APP_INSTANCE_NAME +set_motd="" + #================================================= # CHECK IF THE APP CAN BE INSTALLED WITH THESE ARGS #================================================= @@ -37,7 +39,6 @@ final_path=/var/www/$app test ! -e "$final_path" || ynh_die --message="This path already contains a folder" mkdir -p "/etc/vikunja" -#touch "/etc/vikunja/config.yml" # Register (book) web path ynh_webpath_register --app=$app --domain=$domain --path_url=$path_url @@ -49,6 +50,7 @@ ynh_script_progression --message="Storing installation settings..." --weight=2 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 #================================================= # STANDARD MODIFICATIONS @@ -128,6 +130,8 @@ ynh_script_progression --message="Adding a configuration file..." --weight=1 redis_db=$(ynh_redis_get_free_db) ynh_add_config --template="../conf/config.yml" --destination="/etc/vikunja/config.yml" +chmod 400 "/etc/vikunja/config.yml" +chown $app:$app "/etc/vikunja/config.yml" #================================================= # SETUP SYSTEMD diff --git a/scripts/upgrade b/scripts/upgrade index 580f2c8..2cae635 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -26,6 +26,8 @@ db_pwd=$(ynh_app_setting_get --app=$app --key=psqlpwd) timezone="$(cat /etc/timezone)" secret=$(ynh_string_random --length=32) +set_motd=$(ynh_app_setting_get --app=$app --key=set_motd) + #================================================= # CHECK VERSION #================================================= @@ -37,6 +39,11 @@ upgrade_type=$(ynh_check_app_version_changed) #================================================= ynh_script_progression --message="Ensuring downward compatibility..." --weight=1 +if [ -z "$set_motd" ]; then + set_motd="" + ynh_app_setting_set --app=$app --key=set_motd --value=$set_motd +fi + # Cleaning legacy permissions if ynh_legacy_permissions_exists; then ynh_legacy_permissions_delete_all From c3bb43b48274c27390b43791d122eea4313962c5 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sun, 16 Jan 2022 16:14:50 +0100 Subject: [PATCH 06/10] Update config.yml --- conf/config.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/conf/config.yml b/conf/config.yml index d8a061d..d499580 100644 --- a/conf/config.yml +++ b/conf/config.yml @@ -98,17 +98,17 @@ cors: mailer: # Whether to enable the mailer or not. If it is disabled, all users are enabled right away and password reset is not possible. - enabled: false + enabled: true # SMTP Host - host: "" + host: "localhost" # SMTP Host port - port: 587 + port: 25 # SMTP username - username: "user" + username: "vikunja" # SMTP password password: "" # Wether to skip verification of the tls certificate on the server - skiptlsverify: false + skiptlsverify: true # The default from address when sending emails fromemail: "mail@vikunja" # The length of the mail queue. From 5bb9bac4e5a4712b908275d6ea28885e68bf8fd6 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sun, 16 Jan 2022 17:00:45 +0100 Subject: [PATCH 07/10] enable_registration --- conf/config.yml | 2 +- config_panel.toml | 8 ++++++++ scripts/install | 2 ++ scripts/upgrade | 6 ++++++ 4 files changed, 17 insertions(+), 1 deletion(-) diff --git a/conf/config.yml b/conf/config.yml index d499580..1fa518c 100644 --- a/conf/config.yml +++ b/conf/config.yml @@ -20,7 +20,7 @@ service: # Enable sharing of lists via a link enablelinksharing: true # Whether to let new users registering themselves or not - enableregistration: true + enableregistration: __ENABLE_REGISTRATION__ # Whether to enable task attachments or not enabletaskattachments: true # 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. diff --git a/config_panel.toml b/config_panel.toml index bbce81f..dfccafb 100644 --- a/config_panel.toml +++ b/config_panel.toml @@ -13,3 +13,11 @@ services = ["__APP__"] help = "Set the motd message, available from the /info endpoint" bind = "motd:/etc/vikunja/config.yml" + [main.config.enable_registration] + ask = "Enable registration" + type = "boolean" + yes = "true" + no = "false" + help = "Whether to let new users registering themselves or not" + bind = "enableregistration:/etc/vikunja/config.yml" + diff --git a/scripts/install b/scripts/install index cd0b715..71f5866 100644 --- a/scripts/install +++ b/scripts/install @@ -29,6 +29,7 @@ secret=$(ynh_string_random --length=32) app=$YNH_APP_INSTANCE_NAME set_motd="" +enable_registration="true" #================================================= # CHECK IF THE APP CAN BE INSTALLED WITH THESE ARGS @@ -51,6 +52,7 @@ ynh_script_progression --message="Storing installation settings..." --weight=2 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 #================================================= # STANDARD MODIFICATIONS diff --git a/scripts/upgrade b/scripts/upgrade index 2cae635..9d1a724 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -27,6 +27,7 @@ timezone="$(cat /etc/timezone)" 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) #================================================= # CHECK VERSION @@ -44,6 +45,11 @@ if [ -z "$set_motd" ]; then ynh_app_setting_set --app=$app --key=set_motd --value=$set_motd fi +if [ -z "$enable_registration" ]; then + enable_registration="true" + ynh_app_setting_set --app=$app --key=enable_registration --value=$enable_registration +fi + # Cleaning legacy permissions if ynh_legacy_permissions_exists; then ynh_legacy_permissions_delete_all From 0ecf632f2db2625baefee0af680f8eb8dd3bdef2 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sun, 16 Jan 2022 17:15:03 +0100 Subject: [PATCH 08/10] Update config.yml --- conf/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conf/config.yml b/conf/config.yml index 1fa518c..7af90b7 100644 --- a/conf/config.yml +++ b/conf/config.yml @@ -98,7 +98,7 @@ cors: mailer: # Whether to enable the mailer or not. If it is disabled, all users are enabled right away and password reset is not possible. - enabled: true + enabled: false # SMTP Host host: "localhost" # SMTP Host port From db91b938ca162f5137c5386dafc9a30d9dfa2248 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sun, 16 Jan 2022 17:15:58 +0100 Subject: [PATCH 09/10] Update config.yml --- conf/config.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/conf/config.yml b/conf/config.yml index 7af90b7..384ad0f 100644 --- a/conf/config.yml +++ b/conf/config.yml @@ -100,15 +100,15 @@ mailer: # Whether to enable the mailer or not. If it is disabled, all users are enabled right away and password reset is not possible. enabled: false # SMTP Host - host: "localhost" + host: "" # SMTP Host port - port: 25 + port: 587 # SMTP username - username: "vikunja" + username: "user" # SMTP password password: "" # Wether to skip verification of the tls certificate on the server - skiptlsverify: true + skiptlsverify: false # The default from address when sending emails fromemail: "mail@vikunja" # The length of the mail queue. From 373ea713221a8fe2a5d6b56cc8211f8f31f9130e Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sun, 16 Jan 2022 17:44:04 +0100 Subject: [PATCH 10/10] Update config_panel.toml --- config_panel.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config_panel.toml b/config_panel.toml index dfccafb..ae8fec3 100644 --- a/config_panel.toml +++ b/config_panel.toml @@ -10,7 +10,7 @@ services = ["__APP__"] [main.config.set_motd] ask = "Set MOTD" type = "string" - help = "Set the motd message, available from the /info endpoint" + help = "Set the MOTD message shown in Vikunja login page" bind = "motd:/etc/vikunja/config.yml" [main.config.enable_registration]