Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Installer: Improve handling of su/sudo
A couple of changes here: * Check for sudo necessity and availability before doing any real work. Better to warn and exit quick and early! * Remove the support for using `su`. It was broken for two reasons. First, unlike `sudo`, `su -c` expects the command as a single argument. Second, `su`, unlike `sudo`, reads the password from stdin which in this case "contains" the tarball being downloaded. The second point is particularly tricky to solve without saving the tarball to storage (and we want to avoid extra storage space and wear). And, anyway, users that can `su -c` can also `su` manually before installing. Signed-off-by: Leandro Motta Barros <[email protected]> Change-type: patch
- Loading branch information