From 9884de3456ef98e204e2dfc56ea9aa2929943bc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krist=C3=B3f=20T=C3=B3th?= Date: Tue, 27 Mar 2018 16:07:59 +0200 Subject: [PATCH] Extend magic starter to be able to do more... well, magic --- hack/tfw_magic_start.sh | 28 +++++++++++++++++++++++----- 1 file changed, 23 insertions(+), 5 deletions(-) diff --git a/hack/tfw_magic_start.sh b/hack/tfw_magic_start.sh index 5949ae2..1131418 100755 --- a/hack/tfw_magic_start.sh +++ b/hack/tfw_magic_start.sh @@ -49,8 +49,26 @@ build_and_run_backend() run_backend } -trap 'exit' INT TERM -trap 'kill 0' EXIT -build_baseimage -run_frontend & build_and_run_backend -wait +start_tfw() +{ + trap 'exit' INT TERM + trap 'kill 0' EXIT + build_baseimage + run_frontend & build_and_run_backend + wait +} + +case $1 in + start) + start_tfw + ;; + build) + build_backend + ;; + buildtfw) + build_baseimage + ;; + *) + echo "Usage: tfw_magic_start.sh [start|build|buildtfw]" + ;; +esac