From 0e0408c11cf5370ab4696c5a69fdcc33fb347d8e Mon Sep 17 00:00:00 2001 From: Armin Co <armin.co@hs-bochum.de> Date: Sun, 25 Oct 2020 21:11:34 +0100 Subject: [PATCH] Fiux update script. --- setup.sh | 16 ++++++++++++---- tools/update_containers.sh | 4 ++-- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/setup.sh b/setup.sh index 79b5eb5..24e28a2 100755 --- a/setup.sh +++ b/setup.sh @@ -15,10 +15,7 @@ function remove_all_configs() { # Clone repositories function clone_repositories() { git clone $LETSENCRYPT_URL - git clone $JITSI_URL - git clone $NOVNC_URL - git clone $MUMBLE_URL - wait + } function configure_letsencrypt() { @@ -66,11 +63,22 @@ echo "" remove_all_configs clone_repositories +if [ "$USE_JITSI" == "true" ]; then + git clone $JITSI_URL + ./"JITSI_DIR"/setup.sh +fi + configure_letsencrypt if [ "$USE_MUMBLE" == "true" ];then + git clone $MUMBLE_URL configure_mumble fi + +if [ "$USE_NOVNC" == "true" ];then + git clone $NOVNC_URL +fi + ./tools/stop_containers.sh ./tools/update_containers.sh \ No newline at end of file diff --git a/tools/update_containers.sh b/tools/update_containers.sh index c61051d..d889608 100755 --- a/tools/update_containers.sh +++ b/tools/update_containers.sh @@ -14,11 +14,11 @@ echo "Building images" echo "" # Build new images if neccessary -if [$USE_MUMBLE = "true"]; then +if [ "$USE_MUMBLE" == "true" ]; then docker-compose -f $mumble_compose_file build fi -if [$USE_NOVNC = "true"]; then +if [ "$USE_NOVNC" == "true" ]; then docker-compose -f $novnc_compose_file build fi -- GitLab