Projet

Général

Profil

Actions

Souhaits #1822

fermé

Remove non user related files from cofiguration folder

Ajouté par Chris Christiansen il y a 23 jours. Mis à jour il y a 18 jours.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Catégorie:
Core
Version cible:
Début:
27/04/2024
Echéance:
% réalisé:

100%

Temps estimé:

Description

Problem description:
The config folder of galette, seems to contain a mix of user application configuration and developer / release application configuration
config.inc.php, behavior.inc.php and maybe also exports.yaml are user configurable.
  1. Users may want to keep their special configurations between installations. Not knowing which files to keep, they keep all files from the config folder, to the detriment of application upgrades that update default configurations, for example paths and versions in paths.inc.php and versions.inc.php
  2. For container setups or setups where you simply want to symlink user configurations, you need to mount or symlink the specific files containing your personal configuration, leading to the problem "which files to link to". You can also mount / symlink the whole config folder, but then you have to copy the developer / release application configuration files over from the original archives.

Problem solution suggestion:
Create a user_config folder, which may be empty from the start. Any file placed here, overrides the corresponding file in the config folder, but only the ones that should be overridable.
I would suggest that the database info in config.inc.php would always be created here (and you can place your unattended install file here if #1821 is solved). And the installer can either copy or move behavior.inc.php and exports.yaml? to the user_config folder if they don't already exist.

Allowing the folder to be empty from the archives of galette, is important for solutions where you want to symlink or mount the whole folder.

Actions

Formats disponibles : Atom PDF