Extend magic starter to be able to do more... well, magic

This commit is contained in:
Kristóf Tóth 2018-03-27 16:07:59 +02:00
parent 557ccfc2db
commit 9884de3456
1 changed files with 23 additions and 5 deletions

View File

@ -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