Browse Source

fix: do not install ``docker-compose`` if already present

Signed-off-by: Valentin Lab <valentin.lab@kalysto.org>
rc1
Valentin Lab 4 years ago
parent
commit
cff1d78b45
  1. 2
      bin/myc-install

2
bin/myc-install

@ -115,6 +115,7 @@ EOF
## ##
## We could need some docker-compose for some quick hacks ## We could need some docker-compose for some quick hacks
## ##
if ! type -p docker-compose >/dev/null; then
# seems to require a C compiler # seems to require a C compiler
apt-get install -y build-essential </dev/null && apt-get install -y build-essential </dev/null &&
pip install wheel==0.33.6 && pip install wheel==0.33.6 &&
@ -123,6 +124,7 @@ pip install pip==19.3.1 cffi==1.12.3 subprocess32==3.5.4 texttable==1.6.2 \
git+https://github.com/0k/compose@run_ignore_orphans || exit 1 git+https://github.com/0k/compose@run_ignore_orphans || exit 1
## Bug after updating pip ## Bug after updating pip
hash -d pip || exit 1 hash -d pip || exit 1
fi
if [ "$DOMAIN" ]; then if [ "$DOMAIN" ]; then
sed -ri "s/^(\s+domain:\s+).*$/\1$DOMAIN/g" compose.yml sed -ri "s/^(\s+domain:\s+).*$/\1$DOMAIN/g" compose.yml

Loading…
Cancel
Save