'Verifies that permissions and contexts after an rsync are as expected.
Sending proper rsync flags should prevent the need for this, though this is largely
a safeguard.'

def update_permissions(self, repo_path):

    owner = 'root:apache'
    if os.path.exists('/etc/SuSE-release'):
        owner = 'root:www'
    elif os.path.exists('/etc/debian_version'):
        owner = 'root:www-data'
    cmd1 = (('chown    -R    ' + owner) + ('    %s' % repo_path))
    utils.subprocess_call(self.logger, cmd1)
    cmd2 = ('chmod    -R    755    %s' % repo_path)
    utils.subprocess_call(self.logger, cmd2)
