From 6c639c9dd71099437bf27da0aed0c6dd7b0a32b2 Mon Sep 17 00:00:00 2001 From: anju Tiwari Date: Tue, 15 Jul 2014 18:11:54 +0530 Subject: [PATCH] Added Oracle Linux distribution support Enabled devstack to support oracle Linux Server Change-Id: I1749cd3c7756a9903d2a0b0ab19606f87a4937d4 --- functions-common | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/functions-common b/functions-common index 44225ab7d3..9093952db9 100644 --- a/functions-common +++ b/functions-common @@ -435,7 +435,9 @@ function GetDistro { else DISTRO="sle${os_RELEASE}sp${os_UPDATE}" fi - elif [[ "$os_VENDOR" =~ (Red Hat) || "$os_VENDOR" =~ (CentOS) ]]; then + elif [[ "$os_VENDOR" =~ (Red Hat) || \ + "$os_VENDOR" =~ (CentOS) || \ + "$os_VENDOR" =~ (OracleServer) ]]; then # Drop the . release as we assume it's compatible DISTRO="rhel${os_RELEASE::1}" elif [[ "$os_VENDOR" =~ (XenServer) ]]; then @@ -463,7 +465,8 @@ function is_fedora { GetOSVersion fi - [ "$os_VENDOR" = "Fedora" ] || [ "$os_VENDOR" = "Red Hat" ] || [ "$os_VENDOR" = "CentOS" ] + [ "$os_VENDOR" = "Fedora" ] || [ "$os_VENDOR" = "Red Hat" ] || \ + [ "$os_VENDOR" = "CentOS" ] || [ "$os_VENDOR" = "OracleServer" ] }