From 5a559e883e30d754b024d87a950a9ea9e38b44d0 Mon Sep 17 00:00:00 2001 From: TimurNurlygayanov Date: Wed, 15 Jan 2014 18:59:48 +0400 Subject: [PATCH] Fixed dug in script. Change-Id: I066cfa31e5544a58358c63a9ba0c5564687c0fba --- infra/deploy_component.sh | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/infra/deploy_component.sh b/infra/deploy_component.sh index a709a97..7b455b4 100644 --- a/infra/deploy_component.sh +++ b/infra/deploy_component.sh @@ -40,13 +40,14 @@ send -- [lindex $argv 3] send -- " restart\n" expect "@murano" -array set folders ['repository-data', 'repository-cache', 'dashboard-cache', 'conductor-cache'] - -foreach folder $folders -{ - send -- "cd /tmp/murano$folder ; rm -rf *\n" - expect "@murano" -} +send -- "cd /tmp/muranorepository-data ; rm -rf *\n" +expect "@murano" +send -- "cd /tmp/muranorepository-cache ; rm -rf *\n" +expect "@murano" +send -- "cd /tmp/muranodashboard-cache ; rm -rf *\n" +expect "@murano" +send -- "cd /tmp/muranoconductor-cache ; rm -rf *\n" +expect "@murano" send -- "service murano-repository restart\n" send -- "service murano-conductor restart\n"