Mercurial > public > ssdt-docker
diff scripts/.functions.sh @ 189:1a8087653f2a
DEP-12: add docker-compse path if compose not found
author | smith@nwoca.org |
---|---|
date | Wed, 20 Sep 2017 17:35:04 +0100 |
parents | 018f62da1931 |
children | c3587159637f |
line wrap: on
line diff
--- a/scripts/.functions.sh Wed Sep 20 17:01:09 2017 +0100 +++ b/scripts/.functions.sh Wed Sep 20 17:35:04 2017 +0100 @@ -11,6 +11,11 @@ export SSDT_HOME=$(dirname $SSDT_SCRIPTS) fi +if [ "$(which docker-compose)" == ""] +then + PATH="${PATH}:/usr/local/bin" +fi + export SSDT_DOCKER_VERSION=$(docker version --format '{{.Server.Version}}') # deletes psql data from specified service