meskyanichi/backup — pull request #448 by jlambert121 (2013-05-20 14:35:17+00:00)
Title: do not sudo if root already (riak backups)

After commit 77e18366 (~3.2.0) where sudo is run on every riak backup I have an issue with my default sudoers (requretty).

Added check to see if we are root already before sudoing and only run sudo if we are not root.