diff options
| author | Jenkins <jenkins@review.openstack.org> | 2015-06-08 15:50:04 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2015-06-08 15:50:04 +0000 |
| commit | e08b9d001026ffdaae9b3afe73308eb5e4414c76 (patch) | |
| tree | cc489062dda3898033c040f17f98857ee43205a4 | |
| parent | 334fdc29629a4e3e0f366a40dd99949ccd1afc42 (diff) | |
| parent | 70b8f4064e26376eac2582e5042196a8d102856b (diff) | |
| download | kolla-e08b9d001026ffdaae9b3afe73308eb5e4414c76.tar.gz kolla-e08b9d001026ffdaae9b3afe73308eb5e4414c76.zip | |
Merge "Make kolla script bashate compliant"
| -rwxr-xr-x | tools/kolla | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/tools/kolla b/tools/kolla index 704cae725..4bc20f9cf 100755 --- a/tools/kolla +++ b/tools/kolla @@ -47,15 +47,15 @@ function process_all { } function check_selinux { - # Check for SELinux in Enforcing mode and exit if found - if [[ -x /usr/sbin/getenforce ]]; then - if [[ $(/usr/sbin/getenforce) == "Enforcing" ]]; then - echo "You must execute this script without SELinux enforcing mode." - echo "Turn off SELinux enforcing mode by running:" - echo "$ sudo setenforce permissive" - exit 1 - fi - fi + # Check for SELinux in Enforcing mode and exit if found + if [[ -x /usr/sbin/getenforce ]]; then + if [[ $(/usr/sbin/getenforce) == "Enforcing" ]]; then + echo "You must execute this script without SELinux enforcing mode." + echo "Turn off SELinux enforcing mode by running:" + echo "$ sudo setenforce permissive" + exit 1 + fi + fi } function pre_start { @@ -71,8 +71,7 @@ function pre_start { } function post_start { - until keystone user-list | grep glance - do + until keystone user-list | grep glance; do echo "Waiting for OpenStack services to become available" sleep 2 done |
