Revision 7e3ca5c2
Added by Michael Moll over 10 years ago
lib/proxy/bmc/shell.rb | ||
---|---|---|
|
||
def powercycle
|
||
# search for sudo
|
||
sudo = which("sudo", "/usr/bin")
|
||
sudo = which("sudo")
|
||
|
||
unless sudo
|
||
logger.warn "sudo binary was not found - aborting"
|
Also available in: Unified diff
fixes #3874 - extend paths for FreeBSD support