From: Andrey Parfenov Date: Mon, 3 Apr 2017 13:35:49 +0000 (+0300) Subject: install-deps: Add Virtuozzo Linux support X-Git-Tag: v12.0.2~124^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=46bdb32bcd65146c5f4269ac094f12c0b5472de7;p=ceph.git install-deps: Add Virtuozzo Linux support Signed-off-by: Andrey Parfenov --- diff --git a/install-deps.sh b/install-deps.sh index 7f190fb51cd..f6f4baa1847 100755 --- a/install-deps.sh +++ b/install-deps.sh @@ -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