dist/debian: add 'sudo' for run yum on redhat variants

Since this script allows to run in non-root mode, sudo is required for yum.

Signed-off-by: Takuya ASADA <syuu@scylladb.com>
Message-Id: <1497891211-26574-2-git-send-email-syuu@scylladb.com>
This commit is contained in:
Takuya ASADA 2017-06-20 01:53:31 +09:00 committed by Avi Kivity
parent 2a74a394a4
commit 956eac3972

View File

@ -57,7 +57,7 @@ fi
# this hack is needed since some environment installs 'git-core' package, it's
# subset of the git command and doesn't works for our git-archive-all script.
if is_redhat_variant && [ ! -f /usr/libexec/git-core/git-submodule ]; then
yum install -y git
sudo yum install -y git
fi
if [ ! -f /usr/bin/git ]; then
pkg_install git