mirror of
https://github.com/YunoHost-Apps/vikunja_ynh.git
synced 2024-09-03 18:06:26 +02:00
Merge branch 'testing' into enable-mail
This commit is contained in:
commit
eb60096818
7 changed files with 56 additions and 7 deletions
10
README.md
10
README.md
|
@ -19,6 +19,14 @@ Vikunja is a self-hosted open-source to-do list application for all platforms.
|
|||
|
||||
### Features
|
||||
|
||||
- Stay organized
|
||||
- Collaborate with peers
|
||||
- Tasks
|
||||
- Kanban board
|
||||
- CalDAV
|
||||
|
||||
### Features
|
||||
|
||||
- Stay organized
|
||||
- Collaborate with peers
|
||||
- Tasks
|
||||
|
@ -26,7 +34,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
|
||||
|
||||
|
|
|
@ -20,9 +20,8 @@ Vikunja est une application de liste de tâches Open Source auto-hébergée pour
|
|||
- Tasks
|
||||
- Kanban board
|
||||
- CalDAV
|
||||
- Links
|
||||
|
||||
**Version incluse :** 0.18.1~ynh4
|
||||
**Version incluse :** 0.18.2~ynh1
|
||||
|
||||
**Démo :** https://try.vikunja.io/login
|
||||
|
||||
|
|
|
@ -16,11 +16,11 @@ 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
|
||||
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.
|
||||
|
|
23
config_panel.toml
Normal file
23
config_panel.toml
Normal file
|
@ -0,0 +1,23 @@
|
|||
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 shown in Vikunja login page"
|
||||
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"
|
||||
|
|
@ -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",
|
||||
|
|
|
@ -28,6 +28,9 @@ 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
|
||||
#=================================================
|
||||
|
@ -37,7 +40,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 +51,8 @@ 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
|
||||
|
@ -131,6 +135,8 @@ ynh_app_setting_set --app=$app --key=smtp_user_pwd --value=$smtp_user_pwd
|
|||
redis_db=$(ynh_redis_get_free_db)
|
||||
ynh_app_setting_set --app=$app --key=redis_db --value=$redis_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
|
||||
|
|
|
@ -28,6 +28,9 @@ secret=$(ynh_string_random --length=32)
|
|||
smtp_user_pwd=$(ynh_app_setting_get --app=$app --key=smtp_user_pwd)
|
||||
redis_db=$(ynh_app_setting_get --app=$app --key=redis_db)
|
||||
|
||||
set_motd=$(ynh_app_setting_get --app=$app --key=set_motd)
|
||||
enable_registration=$(ynh_app_setting_get --app=$app --key=enable_registration)
|
||||
|
||||
#=================================================
|
||||
# CHECK VERSION
|
||||
#=================================================
|
||||
|
@ -53,6 +56,16 @@ ynh_abort_if_errors
|
|||
#=================================================
|
||||
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
|
||||
|
||||
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
|
||||
|
|
Loading…
Add table
Reference in a new issue