[PR #2646] [MERGED] feat(installer): add default install directory with existing install … #7883

Closed
opened 2026-04-25 16:28:24 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/fosrl/pangolin/pull/2646
Author: @LaurenceJJones
Created: 3/13/2026
Status: Merged
Merged: 3/30/2026
Merged by: @oschwartz10612

Base: devHead: feature/installer-default-dir


📝 Commits (1)

  • 47a99e3 feat(installer): add default install directory with existing install detection

📊 Changes

1 file changed (+119 additions, -0 deletions)

View changed files

📝 install/main.go (+119 -0)

📄 Description

…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.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/fosrl/pangolin/pull/2646 **Author:** [@LaurenceJJones](https://github.com/LaurenceJJones) **Created:** 3/13/2026 **Status:** ✅ Merged **Merged:** 3/30/2026 **Merged by:** [@oschwartz10612](https://github.com/oschwartz10612) **Base:** `dev` ← **Head:** `feature/installer-default-dir` --- ### 📝 Commits (1) - [`47a99e3`](https://github.com/fosrl/pangolin/commit/47a99e35ee2ecd82fb1ab2da655d36fd3301715a) feat(installer): add default install directory with existing install detection ### 📊 Changes **1 file changed** (+119 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `install/main.go` (+119 -0) </details> ### 📄 Description …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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-25 16:28:24 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/pangolin#7883