From 86b31d4e724ffd76ce14a234a8abb1621e9aed7d Mon Sep 17 00:00:00 2001 From: Valentin Lab Date: Thu, 13 Dec 2018 10:51:29 +0100 Subject: [PATCH] fix: [docker-host] remove possible previous docker-compose related stuff --- precise/host/hooks/install.d/70-0k.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/precise/host/hooks/install.d/70-0k.sh b/precise/host/hooks/install.d/70-0k.sh index 89c265f..a1cd02b 100755 --- a/precise/host/hooks/install.d/70-0k.sh +++ b/precise/host/hooks/install.d/70-0k.sh @@ -46,6 +46,16 @@ mkdir -p /opt/apps ) +## +## Remove possible previous docker-compose related stuff +## + +if [ -f /etc/compose/local.conf ]; then + sed -ri 's%^(. /opt/venv/docker-compose/bin/activate)$%# \1 ## docker-compsoe not needed anymore%g' \ + /etc/compose/local.conf +fi + + ## ## Install 0k-charm ##