From 5a6112adabb4de20d5ff8c1f82a21e3ac9a6a857 Mon Sep 17 00:00:00 2001 From: Charles Wyble Date: Sun, 21 Apr 2019 12:50:33 -0500 Subject: [PATCH] more pretty updates --- .../tsys-base/files/usr/local/bin/up2date.sh | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/slack/prod/tsys-base/files/usr/local/bin/up2date.sh b/slack/prod/tsys-base/files/usr/local/bin/up2date.sh index c81d409..24ec75e 100755 --- a/slack/prod/tsys-base/files/usr/local/bin/up2date.sh +++ b/slack/prod/tsys-base/files/usr/local/bin/up2date.sh @@ -1,7 +1,16 @@ #!/bin/bash -apt-get update -apt-get -y --purge autoremove -apt-get -y autoclean -apt-get -y upgrade -apt-get -y dist-upgrade +#Step 1: Update the cache and apply all vendor patches +echo "Running apt-get update" +export DEBIAN_FRONTEND="noninteractive" && apt-get -qq --yes update + +echo "Running apt-get dist-upgrade" +export DEBIAN_FRONTEND="noninteractive" && apt-get -qq --yes dist-upgrade + +echo "Running apt-get upgrade" +export DEBIAN_FRONTEND="noninteractive" && apt-get -qq --yes upgrade + + +echo "Running apt-get purge" +export DEBIAN_FRONTEND="noninteractive" && apt-get -qq --purge autoremove --yes +export DEBIAN_FRONTEND="noninteractive" && apt-get -qq autoclean --yes