]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
install-deps.sh: get lsb_release if needed
authorLoic Dachary <ldachary@redhat.com>
Tue, 3 Feb 2015 16:18:09 +0000 (17:18 +0100)
committerLoic Dachary <ldachary@redhat.com>
Tue, 3 Feb 2015 16:18:09 +0000 (17:18 +0100)
Debian 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 11d3626ea6c283b368559ecd0315f578c8db6c2d..548f3c366eae4d448e2aa67fb5d22b142118f7f0 100755 (executable)
@@ -23,6 +23,10 @@ if test -f /etc/redhat-release ; then
     $SUDO yum install -y redhat-lsb-core
 fi
 
+if which apt-get > /dev/null ; then
+    $SUDO apt-get install -y lsb-release
+fi
+
 case $(lsb_release -si) in
 Ubuntu|Debian|Devuan)
         $SUDO apt-get install -y dpkg-dev