]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
install-deps.sh: get lsb_release if needed 3601/head
authorLoic Dachary <ldachary@redhat.com>
Tue, 3 Feb 2015 15:26:17 +0000 (16:26 +0100)
committerLoic Dachary <ldachary@redhat.com>
Tue, 3 Feb 2015 15:35:13 +0000 (16:35 +0100)
Fedora does not have lsb_release installed by default.

http://tracker.ceph.com/issues/10729 Fixes: #10729

Signed-off-by: Loic Dachary <ldachary@redhat.com>
install-deps.sh

index b001a3327baf4311d95d78637da7b0df6e820689..11d3626ea6c283b368559ecd0315f578c8db6c2d 100755 (executable)
@@ -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