afdaniele / afdaniele/compose

Permission issue does not allow to create config file

Ouverte
#14 1 commentaire 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
PHP
Étoiles
7
Forks
3
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

If we install compose in a directory that does not belong to `www-data` (very common when the code is mounted from outside a Docker container), compose cannot create the configuration file for the core package at boot. This prevents the default value of `maintenance_mode` from `metadata.json` to be written, and the user is redirected to `maintenance` since the default value passed to `Core::getSetting('maintenance_mode', 'core')` is `true`.

We either show an error in this case or make it easier for the user to figure out what the issue is. Perhaps, we could use the entrypoint script to check and notify the user somehow (on-the-fly written page?).

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.