passbe/beef-migration-test-2 — Issue #171: Check if root/admin user for install script - install.rb
Author: passbe
Created: 2011-12-05 09:04:32+00:00
State: open

Running install.rb without appropriate root privs will cause errors and will NOT successfully install the libraries.

Within the install script add functionality to test if the current user context has the appropriate privs. If it doesn't then display a warning to the user. Offer the user two options:
1) Exit and display the relevant 'sudo' command (default option)
2) Continue and attempt the install with the current privs

Original link: http://code.google.com/p/beef/issues/detail?id=92