From c37f51bb5a5d9cfc44a8e52eca1fcf231f04da04 Mon Sep 17 00:00:00 2001 From: Lusheng Ji Date: Sun, 15 Oct 2017 22:17:30 -0400 Subject: Add a hook for teardown to stop installer inf loop Issue-Id: DCAEGEN2-127 Change-Id: I7396a17049fb3186203f48f0f57e77ef135c8dff Signed-off-by: Lusheng Ji --- bootstrap/installer-docker.sh-template | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'bootstrap/installer-docker.sh-template') diff --git a/bootstrap/installer-docker.sh-template b/bootstrap/installer-docker.sh-template index 5284837..9900d06 100755 --- a/bootstrap/installer-docker.sh-template +++ b/bootstrap/installer-docker.sh-template @@ -401,7 +401,8 @@ cfy install -p ./blueprints/ph/${PHBP} -b policy_handler_BP -d policy_handler -i # Keep the container up -while true +rm -f /tmp/ready_to_exit +while [ ! -e /tmp/ready_to_exit ] do - sleep 300 + sleep 30 done -- cgit 1.2.3-korg