summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@open-infrastructure.net>2021-11-15 15:58:26 +0000
committerDaniel Baumann <daniel.baumann@open-infrastructure.net>2021-11-15 15:58:26 +0000
commit14d62f9faa528afbeefdef670010570f19dd44a5 (patch)
tree819669922119198d64c289b04290f1c5367ed2ee /lib
parentReleasing version 20211113. (diff)
downloadcompute-tools-14d62f9faa528afbeefdef670010570f19dd44a5.tar.xz
compute-tools-14d62f9faa528afbeefdef670010570f19dd44a5.zip
Speeding up full-upgrades in container update command by removing redundant upgrade step.
Signed-off-by: Daniel Baumann <daniel.baumann@open-infrastructure.net>
Diffstat (limited to '')
-rwxr-xr-xlibexec/container/update6
1 files changed, 4 insertions, 2 deletions
diff --git a/libexec/container/update b/libexec/container/update
index 4c23423..729baff 100755
--- a/libexec/container/update
+++ b/libexec/container/update
@@ -119,12 +119,14 @@ do
echo "Updating ${NAME}"
echo "################################################################################"
- container run -n ${NAME} -- "apt update && apt ${YES} upgrade"
-
case "${FULL_UPGRADE}" in
true)
container run -n ${NAME} -- "apt update && apt ${YES} full-upgrade"
;;
+
+ *)
+ container run -n ${NAME} -- "apt update && apt ${YES} upgrade"
+ ;;
esac
case "${AUTOREMOVE}" in