Allow installation as non-root

Open Beginner friendly
#246 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
65/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Quiet
Tech stack
shell
Domain
cli, devops

Research direction

Start with the installation script and inspect the Linux branch where TARGET is set. Compare behavior when the script runs as root versus a non-root user, then verify that non-root installation works without sudo and that the existing root installation behavior remains intact.

Written by the indexing model from the issue text.

Description

Can we please relax the requirement that this needs to be installed via sudo?

I currently download the script first and then edit it:

Linux)
    FILE="${FILE}_linux"
    TARGET="/home/developer/.local/bin"
    ;;

Installing it as myself works perfectly then.

It could default to ~/.local/bin for non-root execution, otherwise stay with /usr/local/bin. Or just allow the caller to override the value of TARGET via the environment and/or a CLI param and use whatever they wish.

Dominant language
Shell
Stars
29
Forks
19
Avg merge
3m
Merged PRs (30d)
6

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from databricks/setup-cli

All issues in databricks/setup-cli

Similar issues

More Shell/Bash issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.