diff --git a/config_panel.toml b/config_panel.toml index ae8fec3..f6887f3 100644 --- a/config_panel.toml +++ b/config_panel.toml @@ -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" diff --git a/doc/DISCLAIMER.md b/doc/DISCLAIMER.md index 05eb160..31983a4 100644 --- a/doc/DISCLAIMER.md +++ b/doc/DISCLAIMER.md @@ -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 \ No newline at end of file diff --git a/doc/DISCLAIMER_fr.md b/doc/DISCLAIMER_fr.md index ef0c5cb..df7660e 100644 --- a/doc/DISCLAIMER_fr.md +++ b/doc/DISCLAIMER_fr.md @@ -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/). \ No newline at end of file +Vous pouvez configurer Vikunja en modifiant le fichier `/opt/vikunja/config.yml` en vous aidant de la [documentation](https://vikunja.io/docs/config-options/). \ No newline at end of file diff --git a/scripts/backup b/scripts/backup index 146898e..dc376db 100644 --- a/scripts/backup +++ b/scripts/backup @@ -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" diff --git a/scripts/install b/scripts/install index 0acd0ea..5e9977e 100644 --- a/scripts/install +++ b/scripts/install @@ -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 diff --git a/scripts/restore b/scripts/restore index 5c14c96..12bc9d8 100644 --- a/scripts/restore +++ b/scripts/restore @@ -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"