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

change path to opt

This commit is contained in:
Éric Gaspar 2022-06-21 15:21:49 +02:00
parent 20c44bbf4e
commit 094a09d54e
No known key found for this signature in database
GPG key ID: 574F281483054D44
6 changed files with 7 additions and 14 deletions

View file

@ -11,7 +11,7 @@ services = ["__APP__"]
ask = "Set MOTD" ask = "Set MOTD"
type = "string" type = "string"
help = "Set the MOTD message shown in Vikunja login page" help = "Set the MOTD message shown in Vikunja login page"
bind = "motd:/etc/vikunja/config.yml" bind = "motd:/opt/__APP__/config.yml"
[main.config.enable_registration] [main.config.enable_registration]
ask = "Enable registration" ask = "Enable registration"
@ -19,5 +19,5 @@ services = ["__APP__"]
yes = "true" yes = "true"
no = "false" no = "false"
help = "Whether to let new users registering themselves or not" help = "Whether to let new users registering themselves or not"
bind = "enableregistration:/etc/vikunja/config.yml" bind = "enableregistration:/opt/__APP__/config.yml"

View file

@ -1,6 +1,6 @@
## Configuration ## Configuration
You can also configure Vikunja by editing this file `/etc/vikunja/config.yml` using the [documentation](https://vikunja.io/docs/config-options/). You can also configure Vikunja by editing this file `/opt/vikunja/config.yml` using the [documentation](https://vikunja.io/docs/config-options/).
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

View file

@ -1,3 +1,3 @@
## Configuration ## Configuration
Vous pouvez configurer Vikunja en modifiant le fichier `/etc/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/).

View file

@ -39,9 +39,6 @@ ynh_print_info --message="Declaring files to be backed up..."
# Frontend # Frontend
ynh_backup --src_path="$final_path" ynh_backup --src_path="$final_path"
# Config
ynh_backup --src_path="/etc/$app/config.yml"
# Backend # Backend
ynh_backup --src_path="/opt/$app" ynh_backup --src_path="/opt/$app"

View file

@ -131,12 +131,11 @@ 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/$app"
redis_db=$(ynh_redis_get_free_db) redis_db=$(ynh_redis_get_free_db)
ynh_add_config --template="../conf/config.yml" --destination="/etc/$app/config.yml" ynh_add_config --template="../conf/config.yml" --destination="/opt/$app/config.yml"
chmod 400 "/etc/$app/config.yml" chmod 400 "/opt/$app/config.yml"
chown $app:$app "/etc/$app/config.yml" chown $app:$app "/opt/$app/config.yml"
#================================================= #=================================================
# SETUP SYSTEMD # SETUP SYSTEMD

View file

@ -65,9 +65,6 @@ 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"
# Config
ynh_restore_file --origin_path="/etc/$app/config.yml"
# Backend # Backend
ynh_restore_file --origin_path="/opt/$app" ynh_restore_file --origin_path="/opt/$app"
chmod +x "/opt/$app/vikunja" chmod +x "/opt/$app/vikunja"