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:
commit
ff1e634135
8 changed files with 50 additions and 6 deletions
11
README.md
11
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.2~ynh1
|
||||
|
||||
|
|
|
@ -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
10
doc/DESCRIPTION.md
Normal 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
|
|
@ -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
|
|
@ -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
|
||||
#=================================================
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue