Extend devstack support to Red Hat-based distros
Congress devstack assumes system is Debian-based. That results in default-jre package not found under Red Hat-based distros. JRE package name under other distros may differ, too. Explicitely abort deployment for untested distros. Closes-Bug: #1693216 Change-Id: Id25931946da1f97e08bf9aeb5f6b7668bfbf48a1
This commit is contained in:
parent
5d8d5e2af4
commit
011e77f28d
|
@ -169,7 +169,13 @@ function init_congress {
|
|||
# install_congress() - install dependency, collect client source and prepare
|
||||
function install_congress {
|
||||
# congress requires java so we install it here
|
||||
install_package default-jre
|
||||
if is_ubuntu; then
|
||||
install_package default-jre
|
||||
elif is_fedora; then
|
||||
install_package jre
|
||||
else
|
||||
die $LINENO "Congress devstack only supports Debian and Red Hat-based"
|
||||
fi
|
||||
git_clone $CONGRESSCLIENT_REPO $CONGRESSCLIENT_DIR $CONGRESSCLIENT_BRANCH
|
||||
setup_develop $CONGRESSCLIENT_DIR
|
||||
|
||||
|
|
Loading…
Reference in New Issue