summaryrefslogtreecommitdiffstats
path: root/ci/deploy.sh
diff options
context:
space:
mode:
Diffstat (limited to 'ci/deploy.sh')
-rwxr-xr-xci/deploy.sh18
1 files changed, 14 insertions, 4 deletions
diff --git a/ci/deploy.sh b/ci/deploy.sh
index 92d17e20..12806253 100755
--- a/ci/deploy.sh
+++ b/ci/deploy.sh
@@ -77,10 +77,20 @@ deploy() {
}
check_status() {
- while [ $? -eq 0 ]; do
- sleep 60
- echo " still executing the reltionship within charms ..."
- juju status | grep executing > /dev/null
+ retval=0
+ timeoutiter=0
+ while [ $retval -eq 0 ]; do
+ sleep 30
+ juju status > status.txt
+ if [ "$(grep -c "executing" status.txt )" -ge 1 ]; then
+ echo " still executing the reltionship within charms ..."
+ if [ $timeoutiter -ge 60 ] then
+ retval=1
+ fi
+ timeoutiter=$((timeoutiter+1))
+ else
+ retval=1
+ fi
done
echo "...... deployment finishing ......."
}