From 956eac39729f2b7ff98042cc0e2ddae60422c293 Mon Sep 17 00:00:00 2001 From: Takuya ASADA Date: Tue, 20 Jun 2017 01:53:31 +0900 Subject: [PATCH] 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 Message-Id: <1497891211-26574-2-git-send-email-syuu@scylladb.com> --- dist/debian/build_deb.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/debian/build_deb.sh b/dist/debian/build_deb.sh index 0b8976b..1d923e1 100755 --- a/dist/debian/build_deb.sh +++ b/dist/debian/build_deb.sh @@ -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