mirror of
https://github.com/ceph/ceph
synced 2025-03-11 02:39:05 +00:00
install-deps: Add Virtuozzo Linux support
Signed-off-by: Andrey Parfenov <aparfenov@virtuozzo.com>
This commit is contained in:
parent
13e8315d1a
commit
46bdb32bcd
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user