mirror of
https://github.com/YunoHost-Apps/vikunja_ynh.git
synced 2024-09-03 18:06:26 +02:00
commit
cf37005cc2
11 changed files with 59 additions and 55 deletions
19
README.md
19
README.md
|
@ -5,7 +5,7 @@ It shall NOT be edited by hand.
|
||||||
|
|
||||||
# Vikunja for YunoHost
|
# Vikunja for YunoHost
|
||||||
|
|
||||||
[](https://dash.yunohost.org/appci/app/vikunja)  
|
[](https://dash.yunohost.org/appci/app/vikunja)  
|
||||||
[](https://install-app.yunohost.org/?app=vikunja)
|
[](https://install-app.yunohost.org/?app=vikunja)
|
||||||
|
|
||||||
*[Lire ce readme en français.](./README_fr.md)*
|
*[Lire ce readme en français.](./README_fr.md)*
|
||||||
|
@ -32,7 +32,7 @@ Vikunja is a self-hosted open-source to-do list application for all platforms.
|
||||||
|
|
||||||
## Screenshots
|
## Screenshots
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
## Disclaimers / important information
|
## Disclaimers / important information
|
||||||
|
|
||||||
|
@ -44,21 +44,22 @@ You can also configure Vikunja by editing this file `/opt/vikunja/config.yml` us
|
||||||
The API is accesible with this path: https://domain.ltd/api/v1/docs
|
The API is accesible with this path: https://domain.ltd/api/v1/docs
|
||||||
## Documentation and resources
|
## Documentation and resources
|
||||||
|
|
||||||
* Official app website: https://vikunja.io/
|
* Official app website: <https://vikunja.io/>
|
||||||
* Official admin documentation: https://vikunja.io/docs/
|
* Official admin documentation: <https://vikunja.io/docs/>
|
||||||
* Upstream app code repository: https://kolaente.dev/vikunja/
|
* Upstream app code repository: <https://kolaente.dev/vikunja/>
|
||||||
* YunoHost documentation for this app: https://yunohost.org/app_vikunja
|
* YunoHost documentation for this app: <https://yunohost.org/app_vikunja>
|
||||||
* Report a bug: https://github.com/YunoHost-Apps/vikunja_ynh/issues
|
* Report a bug: <https://github.com/YunoHost-Apps/vikunja_ynh/issues>
|
||||||
|
|
||||||
## Developer info
|
## Developer info
|
||||||
|
|
||||||
Please send your pull request to the [testing branch](https://github.com/YunoHost-Apps/vikunja_ynh/tree/testing).
|
Please send your pull request to the [testing branch](https://github.com/YunoHost-Apps/vikunja_ynh/tree/testing).
|
||||||
|
|
||||||
To try the testing branch, please proceed like that.
|
To try the testing branch, please proceed like that.
|
||||||
```
|
|
||||||
|
``` bash
|
||||||
sudo yunohost app install https://github.com/YunoHost-Apps/vikunja_ynh/tree/testing --debug
|
sudo yunohost app install https://github.com/YunoHost-Apps/vikunja_ynh/tree/testing --debug
|
||||||
or
|
or
|
||||||
sudo yunohost app upgrade vikunja -u https://github.com/YunoHost-Apps/vikunja_ynh/tree/testing --debug
|
sudo yunohost app upgrade vikunja -u https://github.com/YunoHost-Apps/vikunja_ynh/tree/testing --debug
|
||||||
```
|
```
|
||||||
|
|
||||||
**More info regarding app packaging:** https://yunohost.org/packaging_apps
|
**More info regarding app packaging:** <https://yunohost.org/packaging_apps>
|
||||||
|
|
25
README_fr.md
25
README_fr.md
|
@ -1,10 +1,14 @@
|
||||||
|
<!--
|
||||||
|
N.B.: This README was automatically generated by https://github.com/YunoHost/apps/tree/master/tools/README-generator
|
||||||
|
It shall NOT be edited by hand.
|
||||||
|
-->
|
||||||
|
|
||||||
# Vikunja pour YunoHost
|
# Vikunja pour YunoHost
|
||||||
|
|
||||||
[](https://dash.yunohost.org/appci/app/vikunja)  
|
[](https://dash.yunohost.org/appci/app/vikunja)  
|
||||||
[](https://install-app.yunohost.org/?app=vikunja)
|
[](https://install-app.yunohost.org/?app=vikunja)
|
||||||
|
|
||||||
*[Read this readme in english.](./README.md)*
|
*[Read this readme in english.](./README.md)*
|
||||||
*[Lire ce readme en français.](./README_fr.md)*
|
|
||||||
|
|
||||||
> *Ce package vous permet d'installer Vikunja rapidement et simplement sur un serveur YunoHost.
|
> *Ce package vous permet d'installer Vikunja rapidement et simplement sur un serveur YunoHost.
|
||||||
Si vous n'avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour savoir comment l'installer et en profiter.*
|
Si vous n'avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour savoir comment l'installer et en profiter.*
|
||||||
|
@ -28,7 +32,7 @@ Vikunja est une application de liste de tâches Open Source auto-hébergée pour
|
||||||
|
|
||||||
## Captures d'écran
|
## Captures d'écran
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
## Avertissements / informations importantes
|
## Avertissements / informations importantes
|
||||||
|
|
||||||
|
@ -37,21 +41,22 @@ Vikunja est une application de liste de tâches Open Source auto-hébergée pour
|
||||||
Vous pouvez configurer Vikunja en modifiant le fichier `/opt/vikunja/config.yml` en vous aidant de la [documentation](https://vikunja.io/docs/config-options/).
|
Vous pouvez configurer Vikunja en modifiant le fichier `/opt/vikunja/config.yml` en vous aidant de la [documentation](https://vikunja.io/docs/config-options/).
|
||||||
## Documentations et ressources
|
## Documentations et ressources
|
||||||
|
|
||||||
* Site officiel de l'app : https://vikunja.io/
|
* Site officiel de l'app : <https://vikunja.io/>
|
||||||
* Documentation officielle de l'admin : https://vikunja.io/docs/
|
* Documentation officielle de l'admin : <https://vikunja.io/docs/>
|
||||||
* Dépôt de code officiel de l'app : https://kolaente.dev/vikunja/
|
* Dépôt de code officiel de l'app : <https://kolaente.dev/vikunja/>
|
||||||
* Documentation YunoHost pour cette app : https://yunohost.org/app_vikunja
|
* Documentation YunoHost pour cette app : <https://yunohost.org/app_vikunja>
|
||||||
* Signaler un bug : https://github.com/YunoHost-Apps/vikunja_ynh/issues
|
* Signaler un bug : <https://github.com/YunoHost-Apps/vikunja_ynh/issues>
|
||||||
|
|
||||||
## Informations pour les développeurs
|
## Informations pour les développeurs
|
||||||
|
|
||||||
Merci de faire vos pull request sur la [branche testing](https://github.com/YunoHost-Apps/vikunja_ynh/tree/testing).
|
Merci de faire vos pull request sur la [branche testing](https://github.com/YunoHost-Apps/vikunja_ynh/tree/testing).
|
||||||
|
|
||||||
Pour essayer la branche testing, procédez comme suit.
|
Pour essayer la branche testing, procédez comme suit.
|
||||||
```
|
|
||||||
|
``` bash
|
||||||
sudo yunohost app install https://github.com/YunoHost-Apps/vikunja_ynh/tree/testing --debug
|
sudo yunohost app install https://github.com/YunoHost-Apps/vikunja_ynh/tree/testing --debug
|
||||||
ou
|
ou
|
||||||
sudo yunohost app upgrade vikunja -u https://github.com/YunoHost-Apps/vikunja_ynh/tree/testing --debug
|
sudo yunohost app upgrade vikunja -u https://github.com/YunoHost-Apps/vikunja_ynh/tree/testing --debug
|
||||||
```
|
```
|
||||||
|
|
||||||
**Plus d'infos sur le packaging d'applications :** https://yunohost.org/packaging_apps
|
**Plus d'infos sur le packaging d'applications :** <https://yunohost.org/packaging_apps>
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
upgrade=1
|
upgrade=1
|
||||||
upgrade=1 from_commit=b7c5209ca080054e8777c1882f4bf54851834270
|
upgrade=1 from_commit=b7c5209ca080054e8777c1882f4bf54851834270
|
||||||
backup_restore=1
|
backup_restore=1
|
||||||
multi_instance=1
|
multi_instance=0
|
||||||
change_url=1
|
change_url=1
|
||||||
;;; Options
|
;;; Options
|
||||||
Email=
|
Email=
|
||||||
|
|
|
@ -98,19 +98,19 @@ cors:
|
||||||
|
|
||||||
mailer:
|
mailer:
|
||||||
# Whether to enable the mailer or not. If it is disabled, all users are enabled right away and password reset is not possible.
|
# 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
|
# SMTP Host
|
||||||
host: ""
|
host: "localhost"
|
||||||
# SMTP Host port
|
# SMTP Host port
|
||||||
port: 587
|
port: 25
|
||||||
# SMTP username
|
# SMTP username
|
||||||
username: "user"
|
username: ""
|
||||||
# SMTP password
|
# SMTP password
|
||||||
password: ""
|
password: ""
|
||||||
# Wether to skip verification of the tls certificate on the server
|
# Wether to skip verification of the tls certificate on the server
|
||||||
skiptlsverify: false
|
skiptlsverify: true
|
||||||
# The default from address when sending emails
|
# The default from address when sending emails
|
||||||
fromemail: "mail@vikunja"
|
fromemail: "vikunja@__DOMAIN__"
|
||||||
# The length of the mail queue.
|
# The length of the mail queue.
|
||||||
queuelength: 100
|
queuelength: 100
|
||||||
# The timeout in seconds after which the current open connection to the mailserver will be closed.
|
# The timeout in seconds after which the current open connection to the mailserver will be closed.
|
||||||
|
|
|
@ -7,8 +7,8 @@ Requires=postgresql.service redis.service
|
||||||
Type=simple
|
Type=simple
|
||||||
User=__APP__
|
User=__APP__
|
||||||
Group=__APP__
|
Group=__APP__
|
||||||
WorkingDirectory=/opt/vikunja
|
WorkingDirectory=/opt/__APP__
|
||||||
ExecStart=/opt/vikunja/vikunja
|
ExecStart=/opt/__APP__/vikunja
|
||||||
RestartSec=2s
|
RestartSec=2s
|
||||||
Restart=always
|
Restart=always
|
||||||
|
|
||||||
|
|
|
@ -40,10 +40,10 @@ ynh_print_info --message="Declaring files to be backed up..."
|
||||||
ynh_backup --src_path="$final_path"
|
ynh_backup --src_path="$final_path"
|
||||||
|
|
||||||
# Config
|
# Config
|
||||||
ynh_backup --src_path="/etc/vikunja/config.yml"
|
ynh_backup --src_path="/etc/$app/config.yml"
|
||||||
|
|
||||||
# Backend
|
# Backend
|
||||||
ynh_backup --src_path="/opt/vikunja"
|
ynh_backup --src_path="/opt/$app"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# BACKUP THE NGINX CONFIGURATION
|
# BACKUP THE NGINX CONFIGURATION
|
||||||
|
|
|
@ -117,9 +117,9 @@ ynh_script_progression --message="Adding a configuration file..." --weight=1
|
||||||
domain="$new_domain"
|
domain="$new_domain"
|
||||||
path="$new_path"
|
path="$new_path"
|
||||||
redis_db=$(ynh_redis_get_free_db)
|
redis_db=$(ynh_redis_get_free_db)
|
||||||
ynh_add_config --template="../conf/config.yml" --destination="/etc/vikunja/config.yml"
|
ynh_add_config --template="../conf/config.yml" --destination="/etc/$app/config.yml"
|
||||||
|
|
||||||
chmod 600 "/etc/vikunja/config.yml"
|
chmod 600 "/etc/$app/config.yml"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# GENERIC FINALISATION
|
# GENERIC FINALISATION
|
||||||
|
|
|
@ -25,7 +25,6 @@ path_url="/"
|
||||||
is_public=$YNH_APP_ARG_IS_PUBLIC
|
is_public=$YNH_APP_ARG_IS_PUBLIC
|
||||||
timezone="$(cat /etc/timezone)"
|
timezone="$(cat /etc/timezone)"
|
||||||
secret=$(ynh_string_random --length=32)
|
secret=$(ynh_string_random --length=32)
|
||||||
architecture=$YNH_ARCH
|
|
||||||
|
|
||||||
app=$YNH_APP_INSTANCE_NAME
|
app=$YNH_APP_INSTANCE_NAME
|
||||||
|
|
||||||
|
@ -109,15 +108,15 @@ chown -R $app:www-data "$final_path"
|
||||||
ynh_script_progression --message="Setting up backend..." --weight=1
|
ynh_script_progression --message="Setting up backend..." --weight=1
|
||||||
|
|
||||||
# Download, check integrity, uncompress and patch the source from app.src
|
# Download, check integrity, uncompress and patch the source from app.src
|
||||||
mkdir -p "/opt/vikunja"
|
mkdir -p "/opt/$app"
|
||||||
mkdir -p "/opt/vikunja/files"
|
mkdir -p "/opt/$app/files"
|
||||||
tempdir="$(mktemp -d)"
|
tempdir="$(mktemp -d)"
|
||||||
ynh_setup_source --dest_dir=$tempdir --source_id="$architecture"
|
ynh_setup_source --dest_dir=$tempdir --source_id=$YNH_ARCH
|
||||||
back="$(find $tempdir -name "vikunja-*" \! -name "*.sha256")"
|
back="$(find $tempdir -name "vikunja-*" \! -name "*.sha256")"
|
||||||
cp "$back" "/opt/vikunja/vikunja"
|
cp "$back" "/opt/$app/vikunja"
|
||||||
|
|
||||||
chmod +x "/opt/vikunja/vikunja"
|
chmod +x "/opt/$app/vikunja"
|
||||||
chown -R $app:www-data "/opt/vikunja/files"
|
chown -R $app:www-data "/opt/$app/files"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# NGINX CONFIGURATION
|
# NGINX CONFIGURATION
|
||||||
|
@ -132,12 +131,12 @@ ynh_add_nginx_config
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Adding a configuration file..." --weight=1
|
ynh_script_progression --message="Adding a configuration file..." --weight=1
|
||||||
|
|
||||||
mkdir -p "/etc/vikunja"
|
mkdir -p "/etc/$app"
|
||||||
redis_db=$(ynh_redis_get_free_db)
|
redis_db=$(ynh_redis_get_free_db)
|
||||||
ynh_add_config --template="../conf/config.yml" --destination="/etc/vikunja/config.yml"
|
ynh_add_config --template="../conf/config.yml" --destination="/etc/$app/config.yml"
|
||||||
|
|
||||||
chmod 400 "/etc/vikunja/config.yml"
|
chmod 400 "/etc/$app/config.yml"
|
||||||
chown $app:$app "/etc/vikunja/config.yml"
|
chown $app:$app "/etc/$app/config.yml"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# SETUP SYSTEMD
|
# SETUP SYSTEMD
|
||||||
|
|
|
@ -98,7 +98,7 @@ ynh_system_user_delete --username=$app
|
||||||
ynh_script_progression --message="Removing backend..." --weight=1
|
ynh_script_progression --message="Removing backend..." --weight=1
|
||||||
|
|
||||||
# Delete /opt/vikunja
|
# Delete /opt/vikunja
|
||||||
ynh_secure_remove --file="/opt/vikunja"
|
ynh_secure_remove --file="/opt/$app"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# END OF SCRIPT
|
# END OF SCRIPT
|
||||||
|
|
|
@ -66,12 +66,12 @@ chmod -R o-rwx "$final_path"
|
||||||
chown -R $app:www-data "$final_path"
|
chown -R $app:www-data "$final_path"
|
||||||
|
|
||||||
# Config
|
# Config
|
||||||
ynh_restore_file --origin_path="/etc/vikunja/config.yml"
|
ynh_restore_file --origin_path="/etc/$app/config.yml"
|
||||||
|
|
||||||
# Backend
|
# Backend
|
||||||
ynh_restore_file --origin_path="/opt/vikunja"
|
ynh_restore_file --origin_path="/opt/$app"
|
||||||
chmod +x "/opt/vikunja/vikunja"
|
chmod +x "/opt/$app/vikunja"
|
||||||
chown -R $app:www-data "/opt/vikunja/files"
|
chown -R $app:www-data "/opt/$app/files"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# REINSTALL DEPENDENCIES
|
# REINSTALL DEPENDENCIES
|
||||||
|
|
|
@ -25,7 +25,6 @@ db_user=$db_name
|
||||||
db_pwd=$(ynh_app_setting_get --app=$app --key=psqlpwd)
|
db_pwd=$(ynh_app_setting_get --app=$app --key=psqlpwd)
|
||||||
timezone="$(cat /etc/timezone)"
|
timezone="$(cat /etc/timezone)"
|
||||||
secret=$(ynh_string_random --length=32)
|
secret=$(ynh_string_random --length=32)
|
||||||
architecture=$YNH_ARCH
|
|
||||||
|
|
||||||
set_motd=$(ynh_app_setting_get --app=$app --key=set_motd)
|
set_motd=$(ynh_app_setting_get --app=$app --key=set_motd)
|
||||||
enable_registration=$(ynh_app_setting_get --app=$app --key=enable_registration)
|
enable_registration=$(ynh_app_setting_get --app=$app --key=enable_registration)
|
||||||
|
@ -104,21 +103,21 @@ then
|
||||||
|
|
||||||
# Download, check integrity, uncompress and patch the source from app.src
|
# Download, check integrity, uncompress and patch the source from app.src
|
||||||
# Frontend
|
# Frontend
|
||||||
ynh_setup_source --dest_dir="$final_path" --source_id="front" --keep="/etc/vikunja/config.yml"
|
ynh_setup_source --dest_dir="$final_path" --source_id="front" --keep="/etc/$app/config.yml"
|
||||||
|
|
||||||
# Backend
|
# Backend
|
||||||
mkdir -p "/opt/vikunja/files"
|
mkdir -p "/opt/$app/files"
|
||||||
tempdir="$(mktemp -d)"
|
tempdir="$(mktemp -d)"
|
||||||
ynh_setup_source --dest_dir=$tempdir --source_id="$architecture"
|
ynh_setup_source --dest_dir=$tempdir --source_id=$YNH_ARCH
|
||||||
back="$(find $tempdir -name "vikunja-*" \! -name "*.sha256")"
|
back="$(find $tempdir -name "vikunja-*" \! -name "*.sha256")"
|
||||||
cp "$back" "/opt/vikunja/vikunja"
|
cp "$back" "/opt/$app/vikunja"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
chmod 750 "$final_path"
|
chmod 750 "$final_path"
|
||||||
chmod -R o-rwx "$final_path"
|
chmod -R o-rwx "$final_path"
|
||||||
chown -R $app:www-data "$final_path"
|
chown -R $app:www-data "$final_path"
|
||||||
chmod +x "/opt/vikunja/vikunja"
|
chmod +x "/opt/$app/vikunja"
|
||||||
chown -R $app:www-data "/opt/vikunja/files"
|
chown -R $app:www-data "/opt/$app/files"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# NGINX CONFIGURATION
|
# NGINX CONFIGURATION
|
||||||
|
|
Loading…
Add table
Reference in a new issue