]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
install-deps: Add Virtuozzo Linux support
authorAndrey Parfenov <aparfenov@virtuozzo.com>
Mon, 3 Apr 2017 13:35:49 +0000 (16:35 +0300)
committerAndrey Parfenov <aparfenov@virtuozzo.com>
Mon, 3 Apr 2017 13:35:49 +0000 (16:35 +0300)
Signed-off-by: Andrey Parfenov <aparfenov@virtuozzo.com>
install-deps.sh

index 7f190fb51cdef613896622afa4b93d3d5a87d814..f6f4baa1847d19f22b4591c2a4633e57b3dac8a2 100755 (executable)
@@ -89,7 +89,7 @@ else
        $SUDO env DEBIAN_FRONTEND=noninteractive apt-get -y remove ceph-build-deps
        if [ -n "$backports" ] ; then rm $control; fi
         ;;
-    centos|fedora|rhel|ol)
+    centos|fedora|rhel|ol|virtuozzo)
         yumdnf="yum"
         builddepcmd="yum-builddep -y"
         if test "$(echo "$VERSION_ID >= 22" | bc)" -ne 0; then
@@ -104,7 +104,7 @@ else
                     $SUDO $yumdnf install -y yum-utils
                 fi
                 ;;
-            CentOS|RedHatEnterpriseServer)
+            CentOS|RedHatEnterpriseServer|VirtuozzoLinux)
                 $SUDO yum install -y yum-utils
                 MAJOR_VERSION=$(lsb_release -rs | cut -f1 -d.)
                 if test $(lsb_release -si) = RedHatEnterpriseServer ; then
@@ -118,6 +118,9 @@ else
                 if test $(lsb_release -si) = CentOS -a $MAJOR_VERSION = 7 ; then
                     $SUDO yum-config-manager --enable cr
                 fi
+                if test $(lsb_release -si) = VirtuozzoLinux -a $MAJOR_VERSION = 7 ; then
+                    $SUDO yum-config-manager --enable cr
+                fi
                 ;;
         esac
         sed -e 's/@//g' < ceph.spec.in > $DIR/ceph.spec