summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@open-infrastructure.net>2021-07-27 01:07:52 +0000
committerDaniel Baumann <daniel.baumann@open-infrastructure.net>2021-07-27 01:07:52 +0000
commit0a081c55af8dcc6b4b932fdd25107789acb036f4 (patch)
tree0ce99b4b1ada890507fddcb600ab4d99b76c9981
parentUpdating container update options in bash-completion. (diff)
downloadcompute-tools-0a081c55af8dcc6b4b932fdd25107789acb036f4.tar.xz
compute-tools-0a081c55af8dcc6b4b932fdd25107789acb036f4.zip
Fixing full-upgrade option in container update command.
Signed-off-by: Daniel Baumann <daniel.baumann@open-infrastructure.net>
-rwxr-xr-xlibexec/container/update4
1 files changed, 2 insertions, 2 deletions
diff --git a/libexec/container/update b/libexec/container/update
index bb175d1..41891fe 100755
--- a/libexec/container/update
+++ b/libexec/container/update
@@ -29,7 +29,7 @@ HOOKS="/etc/${SOFTWARE}/hooks"
Parameters ()
{
GETOPT_LONGOPTIONS="name:,full-upgrade,autoremove,purge,yes,"
- GETOPT_OPTIONS="n:,r,p,y,"
+ GETOPT_OPTIONS="n:,f,r,p,y,"
PARAMETERS="$(getopt --longoptions ${GETOPT_LONGOPTIONS} --name=${COMMAND} --options ${GETOPT_OPTIONS} --shell sh -- ${@})"
@@ -120,7 +120,7 @@ do
case "${FULL_UPGRADE}" in
true)
- container run -n ${NAME} -- "apt update && ${YES} full-upgrade"
+ container run -n ${NAME} -- "apt update && apt ${YES} full-upgrade"
;;
esac