summaryrefslogtreecommitdiffstats
path: root/libexec
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@open-infrastructure.net>2021-11-16 05:17:52 +0000
committerDaniel Baumann <daniel.baumann@open-infrastructure.net>2021-11-16 05:19:15 +0000
commitd6cf0ab472a1520e065dacd8034505711ed2e39b (patch)
tree73a5c3a5bbd1ff546051abdbe38c4192b6f17fa1 /libexec
parentAdding comment about using grep to de-colorize apt messages in container upda... (diff)
downloadcompute-tools-d6cf0ab472a1520e065dacd8034505711ed2e39b.tar.xz
compute-tools-d6cf0ab472a1520e065dacd8034505711ed2e39b.zip
Making container update command work entirely non-interactive.
Signed-off-by: Daniel Baumann <daniel.baumann@open-infrastructure.net>
Diffstat (limited to '')
-rwxr-xr-xlibexec/container/update4
1 files changed, 2 insertions, 2 deletions
diff --git a/libexec/container/update b/libexec/container/update
index cf26de9..6d8ac20 100755
--- a/libexec/container/update
+++ b/libexec/container/update
@@ -133,11 +133,11 @@ do
case "${FULL_UPGRADE}" in
true)
- container run -n ${NAME} -- "apt ${YES} full-upgrade"
+ container run -n ${NAME} -- "DEBCONF_FRONTEND='noninteractive' DEBCONF_PRIORITY='critical' apt \-o Dpkg::Options::=\-\-force-confold ${YES} full-upgrade"
;;
*)
- container run -n ${NAME} -- "apt ${YES} upgrade"
+ container run -n ${NAME} -- "DEBCONF_FRONTEND='noninteractive' DEBCONF_PRIORITY='critical' apt \-o Dpkg::Options::=\-\-force-confold ${YES} upgrade"
;;
esac
;;