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:
parent
2a74a394a4
commit
956eac3972
2
dist/debian/build_deb.sh
vendored
2
dist/debian/build_deb.sh
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user