From 1f2ab85b92e0fa1d808b79854a0a2f883207cea9 Mon Sep 17 00:00:00 2001 From: blagovesta Date: Sun, 3 Dec 2017 21:01:01 +0100 Subject: [PATCH] allow outdated packages to be downloaded (-y argument needs --force-yes to continue the download) --- extra/lib.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extra/lib.sh b/extra/lib.sh index cb9edb2d..448dc397 100755 --- a/extra/lib.sh +++ b/extra/lib.sh @@ -47,7 +47,7 @@ function package() { log "$1 is already installed. skipping." else log "Installing $1" - sudo DEBIAN_FRONTEND=noninteractive apt-get install $1 -y --no-install-recommends + sudo DEBIAN_FRONTEND=noninteractive apt-get install $1 -y --no-install-recommends --force-yes fi } @@ -289,7 +289,7 @@ function install_composer() { function install_nodejs() { log "Removing node.js legacy version" - sudo DEBIAN_FRONTEND=noninteractive apt-get remove --purge nodejs -y + sudo DEBIAN_FRONTEND=noninteractive apt-get remove --purge nodejs -y --force-yes log "Downloading and setting node.js version 6.x repo information" dl_pipe "https://deb.nodesource.com/setup_6.x" | sudo -E bash -