fix: allow dry-run install without root privileges
Some checks failed
CI/CD / Test (push) Successful in 2m53s
CI/CD / Build (amd64, darwin) (push) Has been cancelled
CI/CD / Build (amd64, linux) (push) Has been cancelled
CI/CD / Build (arm64, darwin) (push) Has been cancelled
CI/CD / Build (arm64, linux) (push) Has been cancelled
CI/CD / Lint (push) Has been cancelled

This commit is contained in:
2026-01-07 11:37:13 +01:00
parent 16f377e9b5
commit f66d19acb0
2 changed files with 2 additions and 2 deletions

Binary file not shown.

View File

@@ -273,8 +273,8 @@ func (i *Installer) Status(ctx context.Context, instance string) (*ServiceStatus
// validatePrerequisites checks system requirements
func (i *Installer) validatePrerequisites() error {
// Check root
if os.Getuid() != 0 {
// Check root (skip in dry-run mode)
if os.Getuid() != 0 && !i.dryRun {
return fmt.Errorf("installation requires root privileges (use sudo)")
}