-
Notifications
You must be signed in to change notification settings - Fork 439
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Running installer within sudobash script installs to /root/.pyenv? #158
Comments
Sudo runs commands as root. So yes, the default installation path, You can overide that by manually setting the If you want to install Pyenv not system-wide but for a specific non-root user -- why are you running the installation as root? |
AFAIK, if you are root, you can run a command as any other user with |
Like I said, I'm making a provisioning script that's setting up my entire OS in one shot. This is just a single step in the script. You can definitely prevent root with
Thanks, this sounds dig worthy. Checking it out. |
I am creating a provisioning script that has to be ran with sudo, but when I do .pyenv ends up under the /root directory. How do I fix this? I don't see any documentation or recommendations online.
sudo provision.sh
I'm guessing all I can do is run
sudo -E -u provision.sh
instead?The text was updated successfully, but these errors were encountered: