From 01f58eb4318744acf36c641e70701b57437ac466 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Tue, 4 Jan 2022 19:10:53 +0100 Subject: [PATCH 01/19] Update _common.sh --- scripts/_common.sh | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index 2bd68b5..4d4651e 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -19,34 +19,6 @@ pkg_dependencies="postgresql apt-transport-https" # FUTURE OFFICIAL HELPERS #================================================= -# Check the architecture -# -# example: architecture=$(ynh_detect_arch) -# -# usage: ynh_detect_arch -# -# Requires YunoHost version 2.2.4 or higher. - -ynh_detect_arch(){ - local architecture - if [ -n "$(uname -m | grep arm64)" ] || [ -n "$(uname -m | grep aarch64)" ]; then - architecture="arm64" - elif [ -n "$(uname -m | grep 64)" ]; then - architecture="amd64" - elif [ -n "$(uname -m | grep 86)" ]; then - architecture="386" - elif [ -n "$(uname -m | grep armv7)" ]; then - architecture="arm7" - elif [ -n "$(uname -m | grep armv6)" ]; then - architecture="arm6" - elif [ -n "$(uname -m | grep armv5)" ]; then - architecture="arm5" - else - architecture="unknown" - fi - echo $architecture -} - #================================================= # REDIS HELPERS #================================================= From 608fe96e8d0610670748c553b78fd5bc65bf5e56 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Tue, 4 Jan 2022 19:11:01 +0100 Subject: [PATCH 02/19] Update install --- scripts/install | 1 - 1 file changed, 1 deletion(-) diff --git a/scripts/install b/scripts/install index 6812e5f..0e53741 100644 --- a/scripts/install +++ b/scripts/install @@ -24,7 +24,6 @@ domain=$YNH_APP_ARG_DOMAIN path_url="/" is_public=$YNH_APP_ARG_IS_PUBLIC timezone="$(cat /etc/timezone)" -architecture=$(ynh_detect_arch) secret=$(ynh_string_random --length=32) app=$YNH_APP_INSTANCE_NAME From 69b36cd37e2fa2a7d26f12856dc7af16e79c2dbe Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Tue, 4 Jan 2022 19:13:13 +0100 Subject: [PATCH 03/19] Update upgrade --- scripts/upgrade | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 9fdf937..d84baf7 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -20,7 +20,6 @@ domain=$(ynh_app_setting_get --app=$app --key=domain) path_url=$(ynh_app_setting_get --app=$app --key=path) final_path=$(ynh_app_setting_get --app=$app --key=final_path) port=$(ynh_app_setting_get --app=$app --key=port) -architecture=$(ynh_detect_arch) db_name=$(ynh_app_setting_get --app=$app --key=db_name) db_user=$db_name db_pwd=$(ynh_app_setting_get --app=$app --key=psqlpwd) @@ -30,7 +29,6 @@ secret=$(ynh_string_random --length=32) #================================================= # CHECK VERSION #================================================= -ynh_script_progression --message="Checking version..." upgrade_type=$(ynh_check_app_version_changed) @@ -46,6 +44,11 @@ if ynh_legacy_permissions_exists; then ynh_app_setting_delete --app=$app --key=is_public fi +# Create a permission if needed +if ! ynh_permission_exists --permission="api"; then + ynh_permission_create --permission="api" --url="/api" --allowed="visitors" --auth_header="false" --show_tile="false" --protected="true" +fi + #================================================= # BACKUP BEFORE UPGRADE THEN ACTIVE TRAP #================================================= @@ -103,7 +106,7 @@ chmod +x /opt/vikunja/vikunja #================================================= # ADD A CONFIGURATION #================================================= -ynh_script_progression --message="Adding a configuration file..." --weight=1 +#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" From cfb9fe0b7b6d18b5f6f4d1461ac8a534529427cf Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Tue, 4 Jan 2022 19:15:59 +0100 Subject: [PATCH 04/19] Fix --- conf/front.src | 5 ++--- manifest.json | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/conf/front.src b/conf/front.src index c9d3457..80f5a3b 100644 --- a/conf/front.src +++ b/conf/front.src @@ -1,7 +1,6 @@ -SOURCE_URL=https://dl.vikunja.io/frontend/vikunja-frontend-0.18.1.zip -SOURCE_SUM=bb85c0e89aa7fa9d89d2c07629a6f0658fe517065a91912f51487f7a7ae1b4de +SOURCE_URL=https://dl.vikunja.io/frontend/vikunja-frontend-0.18.2.zip +SOURCE_SUM=d2f1069f91ba660fe898d4df7efb40a35dbe743dadaa853a09c79955521ee16f SOURCE_SUM_PRG=sha256sum SOURCE_FORMAT=zip SOURCE_IN_SUBDIR=false -SOURCE_FILENAME= SOURCE_EXTRACT=true \ No newline at end of file diff --git a/manifest.json b/manifest.json index cfd6598..59d481b 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~ynh3", + "version": "0.18.1~ynh4", "url": "https://vikunja.io/", "upstream": { "license": "GPL-3.0", From a80051cb95d6131accb26b9ac76b04f81cb27078 Mon Sep 17 00:00:00 2001 From: Yunohost-Bot <> Date: Tue, 4 Jan 2022 18:16:06 +0000 Subject: [PATCH 05/19] 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 91ff443..a446a8c 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~ynh3 +**Shipped version:** 0.18.1~ynh4 **Demo:** https://try.vikunja.io/login diff --git a/README_fr.md b/README_fr.md index 099dc09..16a5b14 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~ynh3 +**Version incluse :** 0.18.1~ynh4 **Démo :** https://try.vikunja.io/login From 85da80b00ece31c458e50f5b21d7e8a06a857efc Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sun, 16 Jan 2022 13:43:08 +0100 Subject: [PATCH 06/19] Add files --- scripts/install | 4 ++++ scripts/restore | 1 + scripts/upgrade | 6 +++++- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index 0e53741..2b8b49c 100644 --- a/scripts/install +++ b/scripts/install @@ -107,7 +107,11 @@ ynh_script_progression --message="Installing backend..." --weight=15 tempdir="$(mktemp -d)" ynh_setup_source --dest_dir=$tempdir --source_id=api ynh_exec_warn_less dpkg -i $tempdir/vikunja-unstable-amd64.deb + +mkdir -p "/opt/vikunja/files" + chmod +x "/opt/vikunja/vikunja" +chown -R $app:www-data "/opt/vikunja/files" #================================================= # NGINX CONFIGURATION diff --git a/scripts/restore b/scripts/restore index 507b857..a5f7ea0 100644 --- a/scripts/restore +++ b/scripts/restore @@ -69,6 +69,7 @@ ynh_restore_file --origin_path="/etc/vikunja/config.yml" ynh_restore_file --origin_path="/opt/vikunja" chmod +x "/opt/vikunja/vikunja" +chown -R $app:www-data "/opt/vikunja/files" #================================================= # REINSTALL DEPENDENCIES diff --git a/scripts/upgrade b/scripts/upgrade index d84baf7..580f2c8 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -96,12 +96,16 @@ then # Download, check integrity, uncompress and patch the source from app.src ynh_setup_source --dest_dir="$final_path" --source_id="front" --keep="/etc/vikunja/config.yml" + + mkdir -p "/opt/vikunja/files" + fi chmod 750 "$final_path" chmod -R o-rwx "$final_path" chown -R $app:www-data "$final_path" -chmod +x /opt/vikunja/vikunja +chmod +x "/opt/vikunja/vikunja" +chown -R $app:www-data "/opt/vikunja/files" #================================================= # ADD A CONFIGURATION From e720a088f7696ed1577d44799057def3a908ea4e Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sun, 16 Jan 2022 13:55:13 +0100 Subject: [PATCH 07/19] Fix --- scripts/install | 2 -- scripts/remove | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/scripts/install b/scripts/install index 2b8b49c..e3e4662 100644 --- a/scripts/install +++ b/scripts/install @@ -129,8 +129,6 @@ 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 600 "/etc/vikunja/config.yml" - #================================================= # SETUP SYSTEMD #================================================= diff --git a/scripts/remove b/scripts/remove index 00d6e5d..c17afff 100644 --- a/scripts/remove +++ b/scripts/remove @@ -74,7 +74,7 @@ ynh_script_progression --message="Removing $app main directory..." --weight=6 # Remove the app directory securely ynh_secure_remove --file="$final_path" -ynh_secure_remove --file="/etc/vikunja" +#ynh_secure_remove --file="/etc/vikunja" #================================================= # REMOVE NGINX CONFIGURATION From 31260875d38832335f41747d4deab2b3e565a8d4 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sun, 16 Jan 2022 14:01:36 +0100 Subject: [PATCH 08/19] Add features --- doc/DESCRIPTION.md | 10 ++++++++++ doc/DESCRIPTION_fr.md | 11 ++++++++++- 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 doc/DESCRIPTION.md diff --git a/doc/DESCRIPTION.md b/doc/DESCRIPTION.md new file mode 100644 index 0000000..2467012 --- /dev/null +++ b/doc/DESCRIPTION.md @@ -0,0 +1,10 @@ +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 \ No newline at end of file diff --git a/doc/DESCRIPTION_fr.md b/doc/DESCRIPTION_fr.md index 22f755e..e1f69a4 100644 --- a/doc/DESCRIPTION_fr.md +++ b/doc/DESCRIPTION_fr.md @@ -1 +1,10 @@ -Vikunja est une application de liste de tâches Open Source auto-hébergée pour toutes les plateformes. \ No newline at end of file +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 \ No newline at end of file From b2162b5b6a98da592f11203db4fb66a6746d0f4d Mon Sep 17 00:00:00 2001 From: Yunohost-Bot <> Date: Sun, 16 Jan 2022 13:01:42 +0000 Subject: [PATCH 09/19] 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 10/19] 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 11/19] 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 12/19] 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 13/19] 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 14/19] 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 15/19] 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 16/19] 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 17/19] 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 18/19] 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] From b2f7e3b0f595f5e8223bf2181f7d598ba0fd1594 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Mon, 17 Jan 2022 08:29:28 +0100 Subject: [PATCH 19/19] Update change_url --- scripts/change_url | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/change_url b/scripts/change_url index 9028263..094fe89 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -35,6 +35,9 @@ db_pwd=$(ynh_app_setting_get --app=$app --key=psqlpwd) secret=$(ynh_string_random --length=32) 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) + #================================================= # BACKUP BEFORE UPGRADE THEN ACTIVE TRAP #=================================================