From 20ce2cb069fbc7ecde24bfbf64ba3cd7a3429c31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krist=C3=B3f=20T=C3=B3th?= Date: Tue, 27 Mar 2018 16:20:17 +0200 Subject: [PATCH] Add options to build and start tfw separatly --- hack/tfw.sh | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/hack/tfw.sh b/hack/tfw.sh index 9606488..d079650 100755 --- a/hack/tfw.sh +++ b/hack/tfw.sh @@ -49,7 +49,7 @@ build_and_run_backend() run_backend } -start_tfw() +build_and_start_tfw() { trap 'exit' INT TERM trap 'kill 0' EXIT @@ -58,17 +58,28 @@ start_tfw() wait } +start_tfw() +{ + trap 'exit' INT TERM + trap 'kill 0' EXIT + run_frontend & run_backend + wait +} + case $1 in - start) - start_tfw + buildtfw) + build_baseimage ;; build) build_backend ;; - buildtfw) - build_baseimage + start) + start_tfw + ;; + buildstart) + build_and_start_tfw ;; *) - echo "Usage: tfw.sh [start|build|buildtfw]" + echo "Usage: tfw.sh [buildtfw|build|start|buildstart]" ;; esac