Allow installer to run without requires sudo #1439

Closed
opened 2026-04-05 19:28:26 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @socheatsok78 on 5/29/2025

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

Since we only need sudo to install Docker on system that doesn't have Docker installed. it doesn't make any sense to always required running the installer with sudo.

This PR changes that if you need the installer to only generate docker-compose.yml and configs, you don't need sudo. Unless Docker is no installed and you are running on linux based on the check in main.go:

image

How to test?

N/A

*Originally created by @socheatsok78 on 5/29/2025* ## 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 Since we only need `sudo` to install Docker on system that doesn't have Docker installed. it doesn't make any sense to always required running the `installer` with `sudo`. This PR changes that if you need the `installer` to only generate `docker-compose.yml` and configs, you don't need `sudo`. Unless Docker is no installed and you are running on `linux` based on the check in `main.go`: <img width="772" alt="image" src="https://github.com/user-attachments/assets/90e4334c-24c8-4e84-b21d-6e347c5ccc26" /> ## How to test? N/A
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/pangolin#1439