You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 21, 2018. It is now read-only.
There's a lot of code here that would not need to run as root if rustup.sh did the sudo invocation itself, and ~/.rustup would not need to be owned by root.
Some considerations:
How to detect when sudo is needed
What to do when there's no tty
Needs to accommodate non-interactive tools
The text was updated successfully, but these errors were encountered:
This would be great. One downside: even if the script pre-authorizes itself with sudo -v, the download might take long enough (or the timeout set short enough) that the timeout expires before it tries to use sudo to run the actual install.
An alternative approach might instead be instead to simply detect when the script is run with sudo and do most of the work in a child process that has its privileges revoked (sudo -u "#$SUDO_UID" ...), then perform the actual install in the parent once the child indicates that it's performed all of the previous steps.
There's a lot of code here that would not need to run as root if rustup.sh did the sudo invocation itself, and
~/.rustup
would not need to be owned by root.Some considerations:
The text was updated successfully, but these errors were encountered: