From 73610a8ba8438a0d1bf96b0a8afa2d34841fcfd5 Mon Sep 17 00:00:00 2001 From: Christoph Date: Mon, 30 Mar 2020 21:36:32 +0200 Subject: [PATCH] bbb-greenlight-install.sh: some minor changes. --- bbb-greenlight-install.sh | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/bbb-greenlight-install.sh b/bbb-greenlight-install.sh index 76d8523..cd71374 100755 --- a/bbb-greenlight-install.sh +++ b/bbb-greenlight-install.sh @@ -160,17 +160,6 @@ fi blank_line -# Remove old versions of Docker -# -echononl "Remove old versions of Docker .." -apt-get remove -y docker docker-engine docker.io containerd runc > "$log_file" 2>&1 -if [[ $? -ne 0 ]]; then - echo_failed - error "$(cat "$log_file")" -else - echo_ok -fi - # Stop Service if started # echononl "Stop Greenlight Service.." @@ -186,6 +175,17 @@ else echo_skipped fi +# Remove old versions of Docker +# +echononl "Remove old versions of Docker .." +apt-get remove -y docker docker-engine docker.io containerd runc > "$log_file" 2>&1 +if [[ $? -ne 0 ]]; then + echo_failed + error "$(cat "$log_file")" +else + echo_ok +fi + # Install packages to allow apt to use a repository over HTTPS #