From 0651d4d6ef550ac4d4dc77e83bbe90cda16673d0 Mon Sep 17 00:00:00 2001 From: Christoph Date: Mon, 24 Nov 2025 00:53:42 +0100 Subject: [PATCH] bbb-pre-install.sh: add 'apt-get update' after adding docker repository. --- bbb-pre-install.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/bbb-pre-install.sh b/bbb-pre-install.sh index bc3f80a..2fda0d1 100755 --- a/bbb-pre-install.sh +++ b/bbb-pre-install.sh @@ -690,6 +690,26 @@ EOF fi +echononl "Update repositories.." +apt-get update > "$log_file" 2>&1 +if [[ $? -ne 0 ]]; then + echo_failed + error "$(cat "$log_file")" + + echononl "continue anyway [yes/no]: " + read OK + OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')" + while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do + echononl "Wrong entry! - repeat [yes/no]: " + read OK + done + [[ $OK = "yes" ]] || fatal "Interrupted by user." + +else + echo_ok +fi + + echononl "Install docker-ce .." if $(dpkg -s docker-ce> /dev/null 2>&1 ) ; then