From 6fd451dac0ea8d834e29fbb8a0e8fe10ea5b0b5a Mon Sep 17 00:00:00 2001 From: Orazio Date: Mon, 10 Feb 2020 17:34:11 +0100 Subject: [PATCH] apt-transport-https is required since we will use HTTPS repos in the script --- auto_install/install.sh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/auto_install/install.sh b/auto_install/install.sh index 48907e5..6780e82 100755 --- a/auto_install/install.sh +++ b/auto_install/install.sh @@ -418,12 +418,13 @@ notifyPackageUpdatesAvailable(){ } preconfigurePackages(){ - # Add support for https repositories if there are any that use it otherwise the installation will silently fail - if [[ -f /etc/apt/sources.list ]]; then - if grep -q https /etc/apt/sources.list; then - BASE_DEPS+=("apt-transport-https") + # Add support for https repositories that will be used later on + if [[ -f /etc/apt/sources.list ]]; then + # Only on stretch because on buster apt already support https transport + if [[ ${OSCN} == "stretch" ]]; then + BASE_DEPS+=("apt-transport-https") fi - fi + fi if [[ ${OSCN} == "buster" ]]; then $SUDO update-alternatives --set iptables /usr/sbin/iptables-legacy