aeolus-incubator/dev-tools — pull request #8 by giulivo (2012-11-26 23:37:40+00:00)
Title: allows to execute bootstrap.sh as non-root user (against run_as_sudo)

These changes permit to exeute bootstrap.sh as non root.

The script in run_as_sudo still assumes one can run sudo. I'd vote instead for *dropping the root requirement completely*.

Assuming we can _always_ use rbenv (and that it would probably raise our chances of success), we can just put in the wiki a short list of packages needed for rbenv to work (which are in the number of 5 or 6) and cover all cases with a single script

Also, in the run_as_sudo branch I see an additional cleanup script which we won't need when dropping the root requirement.

By now I've added some 'HAVESUDO' var on top of the script which, if set to 1, runs the sudo when needed.

By default such a var is set to 0 as if one install the required basic packages and provides a RBENV version, there is no need for root credentials at all.

If these changes look fine to you, I'd be happy to update the README accordingly.