How difficult would it be to add a non-privileged mode that doesn't require to be run as root?
I would love to build this using our continuous integration system which obviously runs as a normal user. Another reason is that I don't feel comfortable running scripts as root that interact with websites.
I see two possible methods: simply omit the commands that require root privileges or hardcode the sudo into them. With the latter method, I could then give sudo access to these specific commands to my continuous integration user via /etc/sudoers.
Perhaps fakeroot could fix the issue?
Fixed download from edelivery.oracle.com, closes #13. Fixed rebuildin…
…g behaviour. Fixed apt sources format.
Just to be clear, this issue was closed as "won't fix". My pull request, which adds the capability to run this script as a normal user with certain sudo privileges, was rejected without further explanation.