1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/vikunja_ynh.git synced 2024-09-03 18:06:26 +02:00

Merge pull request #18 from YunoHost-Apps/Add-file-upload

Add upload file
This commit is contained in:
Éric Gaspar 2022-01-16 14:23:20 +01:00 committed by GitHub
commit ff1e634135
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 50 additions and 6 deletions

View file

@ -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.2~ynh1

View file

@ -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.2~ynh1
**Démo :** https://try.vikunja.io/login

10
doc/DESCRIPTION.md Normal file
View file

@ -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

View file

@ -1 +1,10 @@
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

View file

@ -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
@ -125,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
#=================================================

View file

@ -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

View file

@ -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

View file

@ -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