Skip to content

Commit

Permalink
vagrant: rename setup_docker* -> ensure_docker*_exists
Browse files Browse the repository at this point in the history
To better reflect new code.
  • Loading branch information
mmlb committed Sep 30, 2020
1 parent a72131f commit 2c0c18d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions deploy/vagrant/scripts/tinkerbell.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ ensure_os_packages_exists() (
sudo apt-get install -y "${pkgs[@]}"
)

setup_docker() (
ensure_docker_exists() (
if command_exists docker; then
return
fi
Expand Down Expand Up @@ -54,7 +54,7 @@ setup_docker() (
;
)

setup_docker_compose() (
ensure_docker-compose_exists() (
if command_exists docker-compose; then
return
fi
Expand Down Expand Up @@ -95,8 +95,8 @@ main() (
export DEBIAN_FRONTEND=noninteractive

ensure_os_packages_exists curl jq
setup_docker
setup_docker_compose
ensure_docker_exists
ensure_docker-compose_exists

if [ ! -f ./envrc ]; then
./generate-envrc.sh eth1 >envrc
Expand Down

0 comments on commit 2c0c18d

Please sign in to comment.