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 #