Don't install percona-toolkit if distro is RHEL7

It's not available yet so this will break installs of keystone on
RHEL7 right now.  As noted, the check can be removed once
percona-toolkit is released for RHEL7.

Change-Id: I65b888e994b19bdfe0cd8e4686d27a34e5afa984
This commit is contained in:
Ben Nemec 2014-03-04 16:18:22 -06:00
parent 5baff5fd39
commit 369d450ffa
1 changed files with 4 additions and 0 deletions

View File

@ -2,6 +2,7 @@
set -eux
DISTRO=`lsb_release -si` || true
RELEASE=`lsb_release -r` || true
os-svc-install -u keystone -r /opt/stack/keystone
os-svc-daemon keystone keystone keystone-all "--config-dir /etc/keystone"
@ -15,6 +16,9 @@ cp /opt/stack/keystone/etc/keystone-paste.ini /etc/keystone/keystone-paste.ini
# percona-tookit is NOT supported on Fedora (retrieved 25-06-2013)
# http://www.percona.com/mysql-support/policies/percona-toolkit-supported-platforms-and-versions
if [[ "Ubuntu RedHatEnterpriseServer CentOS" =~ "$DISTRO" ]]; then
if [[ "RedHatEnterpriseServer" =~ "$DISTRO" && "$RELEASE" =~ "7." ]]; then
exit 0
fi
install-packages percona-toolkit
install -m 0755 -o root -g root $(dirname $0)/../cleanup-keystone-tokens.sh /usr/local/bin
install -m 0640 -o root -g root $(dirname $0)/../keystone.crontab /etc/cron.d/keystone