passbe/beef-migration-test-2 — Issue #177: Check if root/admin user for install script - install.rb
Author: passbe
Created: 2011-12-08 10:10:59+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

Google Code Issue: http://code.google.com/p/beef/issues/detail?id=92