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:
parent
20c44bbf4e
commit
094a09d54e
6 changed files with 7 additions and 14 deletions
|
@ -11,7 +11,7 @@ services = ["__APP__"]
|
|||
ask = "Set MOTD"
|
||||
type = "string"
|
||||
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]
|
||||
ask = "Enable registration"
|
||||
|
@ -19,5 +19,5 @@ services = ["__APP__"]
|
|||
yes = "true"
|
||||
no = "false"
|
||||
help = "Whether to let new users registering themselves or not"
|
||||
bind = "enableregistration:/etc/vikunja/config.yml"
|
||||
bind = "enableregistration:/opt/__APP__/config.yml"
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
## 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
|
|
@ -1,3 +1,3 @@
|
|||
## 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/).
|
|
@ -39,9 +39,6 @@ ynh_print_info --message="Declaring files to be backed up..."
|
|||
# Frontend
|
||||
ynh_backup --src_path="$final_path"
|
||||
|
||||
# Config
|
||||
ynh_backup --src_path="/etc/$app/config.yml"
|
||||
|
||||
# Backend
|
||||
ynh_backup --src_path="/opt/$app"
|
||||
|
||||
|
|
|
@ -131,12 +131,11 @@ ynh_add_nginx_config
|
|||
#=================================================
|
||||
ynh_script_progression --message="Adding a configuration file..." --weight=1
|
||||
|
||||
mkdir -p "/etc/$app"
|
||||
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"
|
||||
chown $app:$app "/etc/$app/config.yml"
|
||||
chmod 400 "/opt/$app/config.yml"
|
||||
chown $app:$app "/opt/$app/config.yml"
|
||||
|
||||
#=================================================
|
||||
# SETUP SYSTEMD
|
||||
|
|
|
@ -65,9 +65,6 @@ chmod 750 "$final_path"
|
|||
chmod -R o-rwx "$final_path"
|
||||
chown -R $app:www-data "$final_path"
|
||||
|
||||
# Config
|
||||
ynh_restore_file --origin_path="/etc/$app/config.yml"
|
||||
|
||||
# Backend
|
||||
ynh_restore_file --origin_path="/opt/$app"
|
||||
chmod +x "/opt/$app/vikunja"
|
||||
|
|
Loading…
Reference in a new issue