From c7ebeee1146b2699d50e4fabcd2a759aaa259a6c Mon Sep 17 00:00:00 2001 From: jo Date: Mon, 11 Apr 2022 11:44:27 +0200 Subject: [PATCH] fix(installer): always install fresh packages reorder apt-get update commands to be sure we install fresh packages. --- install | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/install b/install index 54d694be8..2999c9f61 100755 --- a/install +++ b/install @@ -770,14 +770,16 @@ if [ "$ignore_dependencies" = "f" ]; then loud " * Installing External Dependencies * " loud "-----------------------------------------------------" - if $is_ubuntu_dist; then + if [ -x /usr/bin/apt-get ]; then + loudCmd "DEBIAN_FRONTEND=noninteractive apt-get -q update" + + if $is_ubuntu_dist; then loudCmd "DEBIAN_FRONTEND=noninteractive apt-get -y install software-properties-common" loudCmd "add-apt-repository -y ppa:libretime/libretime" - fi + loudCmd "DEBIAN_FRONTEND=noninteractive apt-get -q update" + fi - if [ -x /usr/bin/apt-get ]; then verbose "\n * Reading packages.ini files..." - packages_files=( "${SCRIPT_DIR}/" "${SCRIPT_DIR}/legacy" @@ -793,7 +795,6 @@ if [ "$ignore_dependencies" = "f" ]; then ) set +e - loudCmd "apt-get -q update" loudCmd "DEBIAN_FRONTEND=noninteractive apt-get -y install $package_list" [[ "$in_place" == "t" ]] && loudCmd "DEBIAN_FRONTEND=noninteractive apt-get -y install git" else