Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue 34 #35

Merged
merged 4 commits into from
Sep 25, 2024
Merged

Issue 34 #35

merged 4 commits into from
Sep 25, 2024

Conversation

plabuse
Copy link

@plabuse plabuse commented Sep 9, 2024

Problem

Solution

  • Changement de proprietaires (glpi:www-data) sur les fichiers et repertoires dans $install_dir/files
  • Ajout de directives dans .conf de fpm

@ericgaspar ericgaspar changed the base branch from master to testing September 12, 2024 08:14
scripts/install Outdated
@@ -33,6 +33,9 @@ popd
#=================================================
# SYSTEM CONFIGURATION
#=================================================

chown -R $app:www-data "$install_dir/files"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This permission is already applied to line 19

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bonjour, effectivement (j'ai bien vu la ligne 19), mais je crois que suite aux instructions qui suivent le chmod les bin/console glpi:* il y a des fichiers qui sont créés avec le propriétaire root et dans mon cas cela bloquait l'affichage de la page de login. Je vois que tu as fait du nettoyage/refactoring dans les scripts d'install sur Master. Je vais retester avec ta version.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we should execute the command with ynh_exec_as_app php$php_version bin/console glpi:config:set

@plabuse
Copy link
Author

plabuse commented Sep 25, 2024

Bonjour, @ericgaspar , j'ai essayé d'installer glpi avec la dernière version (10.0.16~ynh2) suite au nettoyage, il y a toujours un problème de connexion dans l'application à cause des droits.
J'ai essayé d'utiliser ynh_exec_as $app ... https://yunohost.org/en/packaging_apps_helpers#ynh-exec-as en modifiant le script en local sur mon installation, mais sans succès, je dois me tromper dans la syntaxe, sinon à l'ancienne avec le chown cela fonctionne.
Capture du 2024-09-25 07-08-55

@ericgaspar ericgaspar merged commit 083e26b into YunoHost-Apps:testing Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants