Skip to content

Comments

[INSTALL] Decoupling instlall GN to $HOME directory and use nvm in shared system #3941

Open
andriacap wants to merge 4 commits intoPnX-SI:developfrom
naturalsolutions:feat/install-gn-prod-opt-and-system-nvm
Open

[INSTALL] Decoupling instlall GN to $HOME directory and use nvm in shared system #3941
andriacap wants to merge 4 commits intoPnX-SI:developfrom
naturalsolutions:feat/install-gn-prod-opt-and-system-nvm

Conversation

@andriacap
Copy link
Contributor

@andriacap andriacap commented Feb 18, 2026

Cette PR fait référence à cette issue : #3935 .

Le contexte qu'est censé couvrir cette PR :

  • J'ai déjà un GN installé sur une VM et je souhaite mettre à jour le GN. Avec ces modifications proposées je suis la doc de mise à jour , mon app se met à jour dans le même emplacement d'origine souhaité .
  • Je fais une première installation de GN sur une VM . Je peux choisir l'emplacement autre que le dossier $HOME grace aux configurations proposées dans cette PR.

N'hésitez pas à tester et faire des retours !

…asculer NVM en installation système partagée

- add install_root_dir/geonature_dir/usershub_dir in install_all.ini to decouple install paths from user home
- update install_all.sh to resolve target dirs from these variables and create/chown parent directories before download/clone
- install NVM in /usr/local/nvm (instead of ~/.nvm) and publish NVM_DIR via /etc/profile.d/geonature-nvm.sh
- update backend/frontend install scripts to prefer /usr/local/nvm, fallback to user nvm, and fail fast with clear error if nvm is unavailable
- update standalone/global installation docs to recommend /opt and document system-wide NVM behavior
- refresh Apache alias examples in docs to /opt/geonature/frontend/dist

Reviewed-by: andriac
…ystem-wide NVM

- use TaxHub default path relative to old GeoNature directory before falling back to $HOME/taxhub
- align nvm loading with install scripts: prefer /usr/local/nvm, fallback to user nvm
- fail fast with explicit error when nvm is unavailable during migration
- keep backward compatibility with legacy /home-based installations

Reviewed-by: andriacap
…ging /opt owner

- add app_user/app_group in install_all.ini and settings.ini.sample
- validate app_user/app_group in install_all.sh and apply ownership on app dirs only
- avoid chown on install root parent (e.g. /opt), keep ownership scoped to geonature/usershub dirs
- run systemd config step with USER=app_user for service file generation consistency
- update installation docs (all + standalone) to document app_user/app_group and /opt/geonature ownership pattern

Reviewed-by: andriacap
@andriacap andriacap marked this pull request as ready for review February 20, 2026 15:05
- Execute install_all.sh in no more mandatory

Reviewed-by: andriacap
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.

1 participant