modules/post/multi/manage/sudo.rb
# Run Method for when run command is issued
Run Method for when run command is issued
Run Method for when run command is issued
def run
		print_status("SUDO: Attempting to upgrade to UID 0 via sudo")
		sudo_bin = cmd_exec("which sudo")
		if is_root?
			print_status "Already root, so no need to upgrade permissions. Aborting."
			return
		end
		if sudo_bin.empty?
			print_error "No sudo binary available. Aborting."
			return
		end
		get_root()
	end
def run print_status ( "SUDO: Attempting to upgrade to UID 0 via sudo" ) sudo_bin = cmd_exec ( "which sudo" ) if is_root? print_status "Already root, so no need to upgrade permissions. Aborting." return end if sudo_bin . empty? print_error "No sudo binary available. Aborting." return end get_root ( ) end
Run Method for when run command is issued
Run Method for when run command is issued