summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>2018-08-31 19:42:59 +0200
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>2018-08-31 20:18:01 +0200
commitee1dd317ddeebc34b3c038fe8b1eca693ab3ee32 (patch)
treedbe1d38e4f47f8ce0f5028ffc4e9c15dd1ad7b3e
parent1854f7ab732c79db446f9b240e95533a1e6698ca (diff)
[docker] Cleanup hosts file on redeploy
JIRA: FUEL-383 Change-Id: Ib01e78951403fbec2e0f588ae5a577bcbad1bd75 Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
-rw-r--r--mcp/scripts/lib.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/mcp/scripts/lib.sh b/mcp/scripts/lib.sh
index 1455d940c..b43686b7d 100644
--- a/mcp/scripts/lib.sh
+++ b/mcp/scripts/lib.sh
@@ -493,7 +493,7 @@ function prepare_containers {
docker-compose --version > /dev/null 2>&1 || COMPOSE_PREFIX="${image_dir}/"
"${COMPOSE_PREFIX}docker-compose" -f docker-compose/docker-compose.yaml down
- sudo rm -rf "${image_dir}/salt" "${image_dir}/nodes/"*
+ sudo rm -rf "${image_dir}/"{salt,hosts} "${image_dir}/nodes/"*
mkdir -p "${image_dir}/salt/"{master.d,minion.d}
# salt state does not properly configure file_roots in master.conf, hard set it
sed -e 's/user: salt/user: root\nfile_recv: True/' -e 's/auto_accept:/open_mode:/' \