diff options
| author | Steven Dake <stdake@cisco.com> | 2015-05-28 08:33:06 -0700 |
|---|---|---|
| committer | Steven Dake <stdake@cisco.com> | 2015-06-07 12:17:59 -0700 |
| commit | 83b2e10409f4297f0333d46d1ab1dba0960f3cbe (patch) | |
| tree | 9516db260ac3920459b0a6f097d6f1cb5a38add6 | |
| parent | 70b8f4064e26376eac2582e5042196a8d102856b (diff) | |
| download | kolla-83b2e10409f4297f0333d46d1ab1dba0960f3cbe.tar.gz kolla-83b2e10409f4297f0333d46d1ab1dba0960f3cbe.zip | |
Make setup_docker.sh bashate compliant
Change-Id: I60ea3b103d1ebe6f9e1b02ef8c91868d7538cdee
Partially-Implements: blueprint bashate-gate
| -rwxr-xr-x | tools/setup_docker.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/setup_docker.sh b/tools/setup_docker.sh index 6be1ebeec..b613713c2 100755 --- a/tools/setup_docker.sh +++ b/tools/setup_docker.sh @@ -9,7 +9,7 @@ set -xu DOCKER_MIN_VERSION=1.6.0 -function check_prerequisites() { +function check_prerequisites { if [[ $EUID -ne 0 ]]; then echo "You must execute this script as root." 1>&2 exit 1 @@ -24,7 +24,7 @@ function check_prerequisites() { fi } -function check_docker_version() { +function check_docker_version { local docker_version local result if type docker &>/dev/null; then @@ -37,7 +37,7 @@ function check_docker_version() { return 1 } -function start_docker() { +function start_docker { pkill -x -9 docker if check_docker_version; then docker -d &>/dev/null & @@ -48,7 +48,7 @@ function start_docker() { fi } -function create_group() { +function create_group { getent group docker result=$? if [ $result -eq 0 ]; then # 0: key already exists, nothing to do |
