Make kolla script bashate compliant

Change-Id: Id02a4d20b9122d173f8ab56628cd055b4a5acf92
This commit is contained in:
Steven Dake 2015-05-28 08:30:59 -07:00
parent f70ccabe52
commit 70b8f4064e

View File

@ -43,15 +43,15 @@ function process_all {
} }
function check_selinux { function check_selinux {
# Check for SELinux in Enforcing mode and exit if found # Check for SELinux in Enforcing mode and exit if found
if [[ -x /usr/sbin/getenforce ]]; then if [[ -x /usr/sbin/getenforce ]]; then
if [[ $(/usr/sbin/getenforce) == "Enforcing" ]]; then if [[ $(/usr/sbin/getenforce) == "Enforcing" ]]; then
echo "You must execute this script without SELinux enforcing mode." echo "You must execute this script without SELinux enforcing mode."
echo "Turn off SELinux enforcing mode by running:" echo "Turn off SELinux enforcing mode by running:"
echo "$ sudo setenforce permissive" echo "$ sudo setenforce permissive"
exit 1 exit 1
fi fi
fi fi
} }
function pre_start { function pre_start {
@ -67,8 +67,7 @@ function pre_start {
} }
function post_start { function post_start {
until keystone user-list | grep glance until keystone user-list | grep glance; do
do
echo "Waiting for OpenStack services to become available" echo "Waiting for OpenStack services to become available"
sleep 2 sleep 2
done done