bbb-pre-install.sh: add 'apt-get update' after adding docker repository.

This commit is contained in:
2025-11-24 00:53:42 +01:00
parent 5c9217f1c4
commit 0651d4d6ef

View File

@@ -690,6 +690,26 @@ EOF
fi 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 .." echononl "Install docker-ce .."
if $(dpkg -s docker-ce> /dev/null 2>&1 ) ; then if $(dpkg -s docker-ce> /dev/null 2>&1 ) ; then