From: Loic Dachary Date: Tue, 3 Feb 2015 15:26:17 +0000 (+0100) Subject: install-deps.sh: get lsb_release if needed X-Git-Tag: v0.93~114^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F3601%2Fhead;p=ceph.git install-deps.sh: get lsb_release if needed Fedora does not have lsb_release installed by default. http://tracker.ceph.com/issues/10729 Fixes: #10729 Signed-off-by: Loic Dachary --- diff --git a/install-deps.sh b/install-deps.sh index b001a3327ba..11d3626ea6c 100755 --- a/install-deps.sh +++ b/install-deps.sh @@ -18,6 +18,11 @@ if test $(id -u) != 0 ; then SUDO=sudo fi export LC_ALL=C # the following is vulnerable to i18n + +if test -f /etc/redhat-release ; then + $SUDO yum install -y redhat-lsb-core +fi + case $(lsb_release -si) in Ubuntu|Debian|Devuan) $SUDO apt-get install -y dpkg-dev