feat(installer): add default install directory with existing install … #120

Closed
opened 2026-04-05 17:01:12 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @LaurenceJJones on 3/13/2026

…detection

Community Contribution License Agreement

By creating this pull request, I grant the project maintainers an unlimited,
perpetual license to use, modify, and redistribute these contributions under any terms they
choose, including both the AGPLv3 and the Fossorial Commercial license terms. I
represent that I have the right to grant this license for all contributed content.

Description

  • Default to /opt/pangolin for new installations
  • Check current directory and /opt/pangolin for existing installs
  • Prompt to use existing install if found at default location
  • Offer to change directory ownership when running via sudo
  • Create installation directory if it doesn't exist

How to test?

Currently the installer generates files relative to where the installer is ran, ultimately this creates:

  • User confusion on where the files ended up
  • Documentation struggles since there is no "default directory" for user to follow if they want to make changes
  • User might generate in a folder and ask "How do I move this?"
  • Might cause user to accidentally place in a folder that has broad permissions and causes information exposure.

The intended direction of this PR is to standardize the output location so moving forward users can get a sense of where files will be generator and create a standard of where we would like them to be placed.

*Originally created by @LaurenceJJones on 3/13/2026* …detection ## Community Contribution License Agreement By creating this pull request, I grant the project maintainers an unlimited, perpetual license to use, modify, and redistribute these contributions under any terms they choose, including both the AGPLv3 and the Fossorial Commercial license terms. I represent that I have the right to grant this license for all contributed content. ## Description - Default to /opt/pangolin for new installations - Check current directory and /opt/pangolin for existing installs - Prompt to use existing install if found at default location - Offer to change directory ownership when running via sudo - Create installation directory if it doesn't exist ## How to test? Currently the installer generates files relative to where the installer is ran, ultimately this creates: - User confusion on where the files ended up - Documentation struggles since there is no "default directory" for user to follow if they want to make changes - User might generate in a folder and ask "How do I move this?" - Might cause user to accidentally place in a folder that has broad permissions and causes information exposure. The intended direction of this PR is to standardize the output location so moving forward users can get a sense of where files will be generator and create a standard of where we would like them to be placed.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/pangolin#120