1
0
mirror of https://github.com/yldio/copilot.git synced 2024-12-01 07:30:07 +02:00
copilot/bin/setup

24 lines
547 B
Plaintext
Raw Normal View History

2016-10-14 13:57:26 +03:00
#! /usr/bin/env bash
#
# Prelude
#
set -euo pipefail
IFS=$'\n\t'
# Beware of CDPATH gotchas causing cd not to work correctly when a user
# has set this in their environment
# https://bosker.wordpress.com/2012/02/12/bash-scripters-beware-of-the-cdpath/
unset CDPATH
readonly INCLUDE="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
# shellcheck source=bin/setup-tools
. "${INCLUDE}"/setup-tools
2016-10-14 13:57:26 +03:00
#
# Main
#
ensure_prerequisites
ensure_docker_config_matches_triton_config_and_capture_triton_details
ensure_triton_cns_is_enabled
write_env_file