From: Géza Gémes Date: Tue, 7 Mar 2017 07:47:58 +0000 (+0100) Subject: Allow installation on CentOS X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=904583b33cc6a990bc57a73afc836dd2ae013c0e;p=raisin.git Allow installation on CentOS Add $DISTRO = "CentOS" to the rpm installation targets complementing Fedora Signed-off-by: Géza Gémes Reviewed-by: Stefano Stabellini --- diff --git a/lib/common-functions.sh b/lib/common-functions.sh index 19434c2..d4476f3 100644 --- a/lib/common-functions.sh +++ b/lib/common-functions.sh @@ -420,7 +420,7 @@ function install_package() { if [[ $DISTRO = "Debian" ]] then $SUDO dpkg -i "$1".deb - elif [[ $DISTRO = "Fedora" ]] + elif [[ $DISTRO = "Fedora" || $DISTRO = "CentOS" ]] then $SUDO rpm -i --force "$1"-`git show --oneline | head -1 | cut -d " " -f 1`-0.$RAISIN_ARCH.rpm else @@ -432,7 +432,7 @@ function uninstall_package() { if [[ $DISTRO = "Debian" ]] then $SUDO dpkg -r "$1" - elif [[ $DISTRO = "Fedora" ]] + elif [[ $DISTRO = "Fedora" || $DISTRO = "CentOS" ]] then $SUDO rpm -e "$1" else